Fix updating of active reactions in MessagesManager.

This commit is contained in:
levlam 2022-09-12 21:39:23 +03:00
parent 999326d56a
commit 8e5dccbdb5
2 changed files with 4 additions and 0 deletions

View File

@ -8253,6 +8253,7 @@ void MessagesManager::set_active_reactions(vector<string> active_reactions) {
return;
}
LOG(INFO) << "Set active reactions to " << active_reactions;
bool is_changed = active_reactions != active_reactions_;
active_reactions_ = std::move(active_reactions);

View File

@ -3841,6 +3841,9 @@ void StickersManager::load_active_reactions() {
}
LOG(INFO) << "Successfully loaded " << active_reactions_.size() << " active reactions";
td_->messages_manager_->set_active_reactions(vector<string>(active_reactions_));
send_closure(G()->td(), &Td::send_update, get_update_active_emoji_reactions_object());
}