Commit Graph

42 Commits

Author SHA1 Message Date
levlam
b24c188ac0 Drop definitely incorrect folder.last_database_server_dialog_date_. 2021-12-24 23:18:40 +03:00
levlam
7ed5534c83 Use '=' as equality operator in SQL queries. 2021-12-24 22:00:13 +03:00
levlam
b34cfef4d0 Replace begin_transaction with begin_read_transaction and begin_write_transaction. 2021-10-07 13:18:00 +03:00
levlam
626caad19a Create database before attaching it. 2021-09-22 20:17:37 +03:00
levlam
db18baa503 Unify include order. 2021-09-19 00:47:05 +03:00
levlam
40c5d47717 Make inherited classes final if possible. 2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98 Use final instead of override. 2021-07-03 23:51:36 +03:00
levlam
a6a4eb6616 Don't include SliceBuilder.h in logging.h. 2021-05-17 15:21:11 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
75aac4dd46 Explicitly capture copied lambda parameters.
GitOrigin-RevId: 653e4c6b640a77bb757576d974906a30d0732a4a
2020-09-27 02:20:42 +03:00
Arseny Smirnov
166682865a DialogDb, MessageDb, MessagesManager: abort if an error happens during a transaction
GitOrigin-RevId: 63751130e05ed6d37928646c9a89ff35166e78e8
2020-07-27 18:03:22 +03:00
levlam
b1419f9de5 Fix some includes.
GitOrigin-RevId: f4b44d2e91ca72b6090d7f1f35673e8268723241
2020-06-07 18:14:52 +03:00
levlam
ba0e0dacfa Store pinned dialog list in binlog.
GitOrigin-RevId: 819de60a7c5e8bdedf69e2e390494005af16ab6b
2020-05-03 01:10:54 +03:00
levlam
392b62e40b Correctly add sponsored chat to total chat count.
GitOrigin-RevId: 94cd41796d06b4a70902b4e424c181bbca740639
2020-04-23 02:31:16 +03:00
levlam
7a649c23f1 Fix chat order comparison.
GitOrigin-RevId: bf16c396fd837410124b59ea97f2953dcefd0bbc
2020-03-16 16:32:27 +03:00
levlam
92df8f9827 Remove unneeded brackets.
GitOrigin-RevId: 0b8a2ae21d28e6c276db8b45ffb4d127800f5d73
2020-02-26 18:15:19 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
97ab18945f Add get_secret_chat_count database request.
GitOrigin-RevId: b1865d0e3255bb6d170d299896903947a9a841de
2019-12-26 04:12:26 +03:00
levlam
1b9164a3ad Fix misprint.
GitOrigin-RevId: 3a578053fcb265ecdc5bf8bd4243fae24a8f2eab
2019-09-16 20:37:16 +03:00
levlam
e1a3ae1cff Keep secret chats in maon chat list when updating.
GitOrigin-RevId: dfd8e3de98705d163eede091413b88bc66f04488
2019-09-16 17:46:25 +03:00
levlam
003aee4268 Use data from the database for max_dialog_date.
GitOrigin-RevId: a1dc2d8ecf64a68209637bb1ce0d16a8b661770c
2019-09-15 04:15:46 +03:00
levlam
12ea695b54 Use TRY_RESULT_ASSIGN to handle responses of db_.get_statement.
GitOrigin-RevId: 0b777859b0670661493eff0a1ed6048ba5010bbd
2019-09-02 21:11:56 +03:00
levlam
ae311f9973 Add folder_id support to DialogDb.
GitOrigin-RevId: 10d69d7b78542fd687925114d9f4c1c9e849d244
2019-08-26 20:08:51 +03:00
levlam
c1afa189f3 Support multiple chat lists.
GitOrigin-RevId: 8adecce0ddf36bb2408eecc19b7f1fc8856151fc
2019-08-22 18:24:02 +03:00
Arseny Smirnov
7a863daa50 DialogDb, MessagesDb: bugfix - call promises only after transaction is commited
GitOrigin-RevId: 650db002f60fc4af3131935973d8f2b0d3040d1b
2019-08-09 21:30:01 +03:00
levlam
470e5cec90 Decrease queries delay in MessageDb, DialogDb and SQLite key-value.
GitOrigin-RevId: 5859c8ed99af5ac20b1485187c35faa85eff4201
2019-03-31 22:46:32 +03:00
levlam
14f5ce9a29 Delete reused notification groups from database and other fixes.
GitOrigin-RevId: d07e452682df5d781bd0bb992ef572c0c3990540
2019-01-12 03:40:06 +03:00
levlam
915b9c70a5 Fix loading last_notification_date from database.
GitOrigin-RevId: 6d1d268bee58a49179e4d02b178dd7c116a46556
2019-01-07 06:23:42 +03:00
levlam
a062fa4f0c Forward-declare SqliteConnectionSafe and SqliteDb. Finally, all DB usages are private.
GitOrigin-RevId: 63d904c6ba9e3896f46ce8844e328f77c7e50553
2019-01-07 03:17:11 +03:00
levlam
eaebfad034 Update copyright year.
GitOrigin-RevId: 359e2b43322222922c44c430d3814b0a4c778dc6
2019-01-01 01:02:34 +03:00
levlam
36ab6b3cca Implement separate mention notification group.
GitOrigin-RevId: 036eed8c87e5f60da0c24cd02df11cd48f977019
2018-12-22 23:24:18 +03:00
levlam
873e15efed Update notification group table.
GitOrigin-RevId: ca9447ae76fb5f184d72d3a8892fcfc444b96a43
2018-12-20 22:48:46 +03:00
Arseny Smirnov
0a27e231ff DialogDb: separate table for notification groups
GitOrigin-RevId: 5654270a3c52a880749c7bd4de96b197a2f04333
2018-12-20 20:24:49 +03:00
levlam
113e264a5f Add MessagesManager::get_message_notification_group_keys_from_database.
GitOrigin-RevId: 8ad93b1dc1782b5f0bf94d70ca8deba55a6ea58f
2018-11-29 00:51:25 +03:00
levlam
07f4d0d94e Add notification_id field to message database.
GitOrigin-RevId: 036e3fb02d7d18c04f568495ae50be9614717a0f
2018-11-28 20:18:50 +03:00
levlam
4c618b6f92 Add notification_group_id to DialogDb.
GitOrigin-RevId: 119785b8a6904a9243ba559237a3f02bb4fe1950
2018-11-27 17:39:13 +03:00
Arseny Smirnov
0575aa2983 DialogDb: last_notification_date
GitOrigin-RevId: d57526aa00fea63cc3efda091cfa9a1a89955065
2018-11-07 00:11:34 +03:00
levlam
f948956bf7 Use td::unique_ptr instead of std::unique_ptr whenever possible.
GitOrigin-RevId: 424beb72dc62efdefdbffb75f1036ba9417f84cb
2018-09-27 04:19:03 +03:00
levlam
b07fc66b69 Add cache of secure values.
GitOrigin-RevId: 54fcf89a89f28086705e12869e9dc777c2a86233
2018-08-12 15:44:24 +03:00
levlam
deecdb66bc Fix some td/actor/ includes.
GitOrigin-RevId: f9cf960b96018c4eb6169d2ec6cb5d3fbc16c0ec
2018-07-03 22:29:04 +03:00
levlam
5cbda834bd Update copyright year.
GitOrigin-RevId: 1369d3af1195221f6ddb9462d5f8b74fb5fef20f
2018-01-02 16:45:09 +03:00
Arseny Smirnov
71d03f39c3 Project import generated by Copybara.
GitOrigin-RevId: 318483224ad6164d9966f731d60cde37039bb2d4
2017-12-31 23:08:40 +03:00