Check that unread_reaction_count was changed before setting it.

This commit is contained in:
levlam 2022-01-28 19:59:18 +03:00
parent 5098dac338
commit 1cf2a9e9c9

View File

@ -8360,7 +8360,9 @@ void MessagesManager::update_dialog_message_reactions_visibility(Dialog *d) {
send_update_message_unread_reactions(d->dialog_id, m, unread_reaction_count);
}
}
set_dialog_unread_reaction_count(d, unread_reaction_count);
if (d->unread_reaction_count != unread_reaction_count) {
set_dialog_unread_reaction_count(d, unread_reaction_count);
}
}
void MessagesManager::set_active_reactions(vector<string> active_reactions) {