Skip to content

Commit

Permalink
Ignore saved to database order for chats that must not be added to ch…
Browse files Browse the repository at this point in the history
…at list.
  • Loading branch information
levlam committed May 14, 2024
1 parent 38a1d7a commit 783033c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions td/telegram/MessagesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34471,6 +34471,9 @@ void MessagesManager::fix_new_dialog(Dialog *d, unique_ptr<DraftMessage> &&draft
set_dialog_last_clear_history_date(d, last_clear_history_date, last_clear_history_message_id, "fix_new_dialog 8",
is_loaded_from_database);

if (td_->dialog_manager_->is_dialog_removed_from_dialog_list(dialog_id)) {
order = DEFAULT_ORDER;
}
set_dialog_order(d, order, false, is_loaded_from_database, "fix_new_dialog 9");
}

Expand Down

0 comments on commit 783033c

Please sign in to comment.