Fix updating of active reactions in MessagesManager.
This commit is contained in:
parent
999326d56a
commit
8e5dccbdb5
@ -8253,6 +8253,7 @@ void MessagesManager::set_active_reactions(vector<string> active_reactions) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LOG(INFO) << "Set active reactions to " << active_reactions;
|
||||||
bool is_changed = active_reactions != active_reactions_;
|
bool is_changed = active_reactions != active_reactions_;
|
||||||
active_reactions_ = std::move(active_reactions);
|
active_reactions_ = std::move(active_reactions);
|
||||||
|
|
||||||
|
@ -3841,6 +3841,9 @@ void StickersManager::load_active_reactions() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
LOG(INFO) << "Successfully loaded " << active_reactions_.size() << " 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());
|
send_closure(G()->td(), &Td::send_update, get_update_active_emoji_reactions_object());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user