mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Update all messages in case of chat reactions toggle.
This commit is contained in:
@@ -763,7 +763,13 @@ PeerId ChannelData::groupCallDefaultJoinAs() const {
|
||||
|
||||
void ChannelData::setAllowedReactions(std::vector<QString> list) {
|
||||
if (_allowedReactions != list) {
|
||||
const auto toggled = (_allowedReactions.empty() != list.empty());
|
||||
_allowedReactions = std::move(list);
|
||||
if (toggled) {
|
||||
owner().reactions().updateAllInHistory(
|
||||
this,
|
||||
!_allowedReactions.empty());
|
||||
}
|
||||
session().changes().peerUpdated(this, UpdateFlag::Reactions);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user