Save only Main/Archive folders to database as index folders.
GitOrigin-RevId: 17d72a332c487c9207db2d3dc95788829a55dca8
This commit is contained in:
parent
03c93c5417
commit
2def12b70f
@ -4930,8 +4930,9 @@ void MessagesManager::save_dialog_to_database(DialogId dialog_id) {
|
||||
};
|
||||
add_group_key(d->message_notification_group);
|
||||
add_group_key(d->mention_notification_group);
|
||||
auto fixed_folder_id = d->folder_id == FolderId::archive() ? FolderId::archive() : FolderId::main();
|
||||
G()->td_db()->get_dialog_db_async()->add_dialog(
|
||||
dialog_id, d->folder_id, d->is_folder_id_inited ? d->order : 0, get_dialog_database_value(d),
|
||||
dialog_id, fixed_folder_id, d->is_folder_id_inited ? d->order : 0, get_dialog_database_value(d),
|
||||
std::move(changed_group_keys), PromiseCreator::lambda([dialog_id, can_reuse_notification_group](Result<> result) {
|
||||
send_closure(G()->messages_manager(), &MessagesManager::on_save_dialog_to_database, dialog_id,
|
||||
can_reuse_notification_group, result.is_ok());
|
||||
|
Loading…
x
Reference in New Issue
Block a user