2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Correctly apply reaction restrictions.

This commit is contained in:
John Preston
2022-01-10 17:22:43 +03:00
parent 2733b12cff
commit 963694330d
22 changed files with 313 additions and 170 deletions

View File

@@ -761,7 +761,7 @@ PeerId ChannelData::groupCallDefaultJoinAs() const {
return _callDefaultJoinAs;
}
void ChannelData::setAllowedReactions(std::vector<QString> list) {
void ChannelData::setAllowedReactions(base::flat_set<QString> list) {
if (_allowedReactions != list) {
const auto toggled = (_allowedReactions.empty() != list.empty());
_allowedReactions = std::move(list);
@@ -774,7 +774,7 @@ void ChannelData::setAllowedReactions(std::vector<QString> list) {
}
}
const std::vector<QString> &ChannelData::allowedReactions() const {
const base::flat_set<QString> &ChannelData::allowedReactions() const {
return _allowedReactions;
}