Reload dialog action bar when it is opened.
GitOrigin-RevId: dcf0122af906a2628b9a02e1695e48b18b743bf8
This commit is contained in:
parent
7327b673de
commit
49b43f8e94
@ -14226,6 +14226,7 @@ void MessagesManager::open_dialog(Dialog *d) {
|
|||||||
break;
|
break;
|
||||||
case DialogType::Chat:
|
case DialogType::Chat:
|
||||||
td_->contacts_manager_->repair_chat_participants(dialog_id.get_chat_id());
|
td_->contacts_manager_->repair_chat_participants(dialog_id.get_chat_id());
|
||||||
|
repair_dialog_action_bar(dialog_id);
|
||||||
break;
|
break;
|
||||||
case DialogType::Channel:
|
case DialogType::Channel:
|
||||||
if (!is_broadcast_channel(dialog_id)) {
|
if (!is_broadcast_channel(dialog_id)) {
|
||||||
@ -14238,8 +14239,12 @@ void MessagesManager::open_dialog(Dialog *d) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
get_channel_difference(dialog_id, d->pts, true, "open_dialog");
|
get_channel_difference(dialog_id, d->pts, true, "open_dialog");
|
||||||
|
repair_dialog_action_bar(dialog_id);
|
||||||
break;
|
break;
|
||||||
case DialogType::SecretChat:
|
case DialogType::SecretChat:
|
||||||
|
// to repair dialog action bar
|
||||||
|
td_->contacts_manager_->get_user_full(
|
||||||
|
td_->contacts_manager_->get_secret_chat_user_id(dialog_id.get_secret_chat_id()), Auto());
|
||||||
break;
|
break;
|
||||||
case DialogType::None:
|
case DialogType::None:
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user