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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user