2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Update all messages in case of chat reactions toggle.

This commit is contained in:
John Preston
2021-12-29 01:06:01 +03:00
parent ec16ca7df7
commit a8bc7baa70
10 changed files with 70 additions and 25 deletions

View File

@@ -2965,6 +2965,16 @@ void History::removeJoinedMessage() {
}
}
void History::reactionsEnabledChanged(bool enabled) {
if (!enabled) {
for (const auto &item : _messages) {
item->updateReactions(nullptr);
}
} else {
}
}
bool History::isEmpty() const {
return blocks.empty();
}