From e1a3ae1cff716bad80fad883d186602a7644cc7c Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 16 Sep 2019 17:46:25 +0300 Subject: [PATCH] Keep secret chats in maon chat list when updating. GitOrigin-RevId: dfd8e3de98705d163eede091413b88bc66f04488 --- td/telegram/DialogDb.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/td/telegram/DialogDb.cpp b/td/telegram/DialogDb.cpp index 7365f5b8..8f3ae315 100644 --- a/td/telegram/DialogDb.cpp +++ b/td/telegram/DialogDb.cpp @@ -75,6 +75,7 @@ Status init_dialog_db(SqliteDb &db, int32 version, bool &was_created) { TRY_STATUS(db.exec("DROP INDEX IF EXISTS dialog_by_dialog_order")); TRY_STATUS(db.exec("ALTER TABLE dialogs ADD COLUMN folder_id INT4")); TRY_STATUS(add_dialogs_in_folder_index()); + TRY_STATUS(db.exec("UPDATE dialogs SET folder_id = 0 WHERE dialog_id < -1500000000000 && dialog_order != 0")); } return Status::OK();