Update private chat permissions when user is received.
GitOrigin-RevId: 3fa3df0aa915130eec167607905b76006dd0b706
This commit is contained in:
parent
c72ba02d85
commit
5104759c6a
@ -6299,11 +6299,15 @@ void ContactsManager::update_user(User *u, UserId user_id, bool from_binlog, boo
|
||||
user_online_timeout_.cancel_timeout(user_id.get());
|
||||
}
|
||||
}
|
||||
if (u->is_default_permissions_changed) {
|
||||
td_->messages_manager_->on_dialog_permissions_updated(DialogId(user_id));
|
||||
}
|
||||
|
||||
u->is_name_changed = false;
|
||||
u->is_username_changed = false;
|
||||
u->is_photo_changed = false;
|
||||
u->is_outbound_link_changed = false;
|
||||
u->is_default_permissions_changed = false;
|
||||
|
||||
if (u->is_deleted) {
|
||||
td_->inline_queries_manager_->remove_recent_inline_bot(user_id, Promise<>());
|
||||
|
@ -519,6 +519,7 @@ class ContactsManager : public Actor {
|
||||
bool is_username_changed = true;
|
||||
bool is_photo_changed = true;
|
||||
bool is_outbound_link_changed = true;
|
||||
bool is_default_permissions_changed = true;
|
||||
bool is_changed = true; // have new changes not sent to the database except changes visible to the client
|
||||
bool need_send_update = true; // have new changes not sent to the client
|
||||
bool is_status_changed = true;
|
||||
|
Loading…
Reference in New Issue
Block a user