Create Dialog for recently speaking channels.

This commit is contained in:
levlam 2021-03-19 04:28:00 +03:00
parent 78f5b24f35
commit 2f2d2004e6

View File

@ -3549,6 +3549,9 @@ void GroupCallManager::on_user_speaking_in_group_call(GroupCallId group_call_id,
for (size_t i = 0; i <= recent_speakers->users.size(); i++) {
if (i == recent_speakers->users.size() || recent_speakers->users[i].second <= date) {
if (dialog_id.get_type() != DialogType::User) {
td_->messages_manager_->force_create_dialog(dialog_id, "on_user_speaking_in_group_call");
}
recent_speakers->users.insert(recent_speakers->users.begin() + i, {dialog_id, date});
break;
}