2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Allow choosing allowed reactions in groups / channels.

This commit is contained in:
John Preston
2021-12-13 15:26:19 +04:00
parent bfdbb64295
commit 9c18f7b0e3
13 changed files with 363 additions and 12 deletions

View File

@@ -288,7 +288,10 @@ void ChatData::setPendingRequestsCount(
}
void ChatData::setAllowedReactions(std::vector<QString> list) {
_allowedReactions = std::move(list);
if (_allowedReactions != list) {
_allowedReactions = std::move(list);
session().changes().peerUpdated(this, UpdateFlag::Reactions);
}
}
const std::vector<QString> &ChatData::allowedReactions() const {