2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +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

@@ -762,7 +762,10 @@ PeerId ChannelData::groupCallDefaultJoinAs() const {
}
void ChannelData::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> &ChannelData::allowedReactions() const {