Fix setChatAvailableReactions.
This commit is contained in:
parent
d348f205f2
commit
ee3c674df1
@ -33110,9 +33110,11 @@ void MessagesManager::set_dialog_available_reactions(DialogId dialog_id, vector<
|
|||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool is_changed = d->available_reactions != available_reactions;
|
||||||
|
|
||||||
set_dialog_available_reactions(d, vector<string>(available_reactions));
|
set_dialog_available_reactions(d, vector<string>(available_reactions));
|
||||||
|
|
||||||
if (d->available_reactions == available_reactions) {
|
if (!is_changed) {
|
||||||
return promise.set_value(Unit());
|
return promise.set_value(Unit());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user