feat: per-account ghost & lock ghost features & refactor

This commit is contained in:
AlexeyZavar
2026-02-04 02:20:12 +03:00
parent 4107597a3a
commit b6d19149d9
110 changed files with 2482 additions and 2657 deletions
@@ -47,10 +47,10 @@ bool UnreadThings::trackReactions(Data::Thread *thread) const {
return false;
}
const auto &settings = AyuSettings::getInstance();
if (peer->isChannel() && !peer->isMegagroup() && !settings.showChannelReactions) {
if (peer->isChannel() && !peer->isMegagroup() && !settings.showChannelReactions()) {
return false;
}
if (peer->isMegagroup() && !settings.showGroupReactions) {
if (peer->isMegagroup() && !settings.showGroupReactions()) {
return false;
}
return peer->isUser() || peer->isChat() || peer->isMegagroup();