Commit Graph

64 Commits

Author SHA1 Message Date
levlam
ee28a37906 Minor improvements. 2022-10-12 15:59:58 +03:00
levlam
96cca84a60 Remove source from next_utf8_unsafe. 2022-08-19 16:37:44 +03:00
levlam
32bac7bd24 Move Promise to tdutils. 2022-06-27 13:30:18 +03:00
levlam
f62632fcbc Remove rarely used PromiseCreator::lambda with 2 lambdas. 2022-06-26 17:11:27 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
7ed5534c83 Use '=' as equality operator in SQL queries. 2021-12-24 22:00:13 +03:00
levlam
3e4db584f8 Fix handling of limit == 0 in getChatSparseMessagePositions. 2021-12-24 11:59:44 +03:00
levlam
6941a4500a Support deletion from database messages by sender_dialog_id. 2021-11-19 16:00:21 +03:00
levlam
9948677047 Fix another g++4.9 compilation error. 2021-12-01 22:25:52 +03:00
levlam
a3b71ca82c Support getChatSparseMessagePositions in secret chats when message database enabled. 2021-11-01 16:30:03 +03:00
levlam
5a82af3f7f Add MessagesDbDialogCalendarQuery. 2021-11-01 13:50:45 +03:00
levlam
463c4e96ac Pass MessageSearchFilter instead of index_mask in message database queries. 2021-11-01 12:52:51 +03:00
levlam
9f44816a62 Minor improvements. 2021-10-21 12:51:16 +03:00
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
levlam
b34cfef4d0 Replace begin_transaction with begin_read_transaction and begin_write_transaction. 2021-10-07 13:18:00 +03:00
levlam
9217e9090a Remove useless PSLICE/PSTRING. 2021-10-06 13:48:29 +03:00
levlam
f10abb253e Add database consistency checks. 2021-10-04 11:01:49 +03:00
levlam
4d180ff0e1 Add MessageId to MessagesDbMessage. 2021-10-01 15:23:38 +03:00
levlam
ad3b9c822d Use struct MessagesDbDialogMessage to return messages in a known chat from database. 2021-10-01 12:55:12 +03:00
levlam
314035a129 Use MessagesDbMessage instead of std::pair. 2021-10-01 11:22:56 +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
5de3751d8d Use int64 for sender_user_id in message database. 2021-03-29 11:28:43 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
1d9989cbd7 Add top_thread_message_id column to the database.
GitOrigin-RevId: 83cd66038c36236305c7a9ed70df09561e89e190
2020-09-28 15:13:25 +03:00
levlam
75aac4dd46 Explicitly capture copied lambda parameters.
GitOrigin-RevId: 653e4c6b640a77bb757576d974906a30d0732a4a
2020-09-27 02:20:42 +03:00
levlam
46f42d80b6 Move MessageSearchFilter to separate files.
GitOrigin-RevId: 07b7df009b4e74a145b5ebc1966190630545baef
2020-08-22 10:27:13 +03:00
levlam
7d6546b27a Rename SearchMessagesFilter to MessageSearchFilter.
GitOrigin-RevId: ac477d22eae9382c6e9d63e184f10490c1bf4292
2020-08-22 10:05:51 +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
e16952121b Use emplace whenever possible.
GitOrigin-RevId: 67cd8e3b6331c5e1671a9d662f034af1e29d3ac6
2020-07-13 23:20:16 +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
8c495d99e6 Use TRY_RESULT_ASSIGN.
GitOrigin-RevId: 99b60b9044fab9357a3440aed7da55f146677e6b
2019-12-08 09:57:33 +03:00
levlam
b13096e8a9 Fix adding to database of rescheduled messages.
GitOrigin-RevId: fe07906bdc9ef264d9d40e225dbc8fbb7d547acd
2019-12-06 21:46:57 +03:00
levlam
6b6d9e509b Add limit to get_scheduled_messages.
GitOrigin-RevId: e49616784f920b526611ac44dd7c5c5d7b599318
2019-12-04 21:52:53 +03:00
levlam
b9666b727e Add td_api::getChatScheduledMessages. Load scheduled messages from database.
GitOrigin-RevId: ab2554642ff588c227c40d4fa12ecc663608e7a4
2019-12-04 20:06:39 +03:00
levlam
c7252bc11a Transparent deletion of scheduled server messages by different message_id.
GitOrigin-RevId: caa637e67824f0678f934e07287530438b84c979
2019-12-02 18:25:41 +03:00
levlam
995e8895ba Transparent return of a correct scheduled server message.
GitOrigin-RevId: c260cefdcef0a919f6aeb4a025500cfc3cd5af00
2019-12-02 17:56:03 +03:00
levlam
16f29863cd Support scheduled messages in MessagesDb::get_message.
GitOrigin-RevId: 77f428b6b0012a41b2766b98ccf076d18b5eb513
2019-12-02 17:27:28 +03:00
levlam
1a0bb5f56f Add scheduled messages database table.
GitOrigin-RevId: 6007af6d26f1c4577fd3e5f1613e5f89d1610fdc
2019-12-02 03:33:35 +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
197acde4d4 Fix first letter case in error messages.
GitOrigin-RevId: 004d1535d3fb04e51a088ad43f2386dea05b7c9c
2019-08-26 04:53:22 +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
44aede31ca Add more logging.
GitOrigin-RevId: 43b44b116e835cbaeb56119254b0de73aa57bdcd
2019-05-30 01:35:19 +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
dd7af98c8e Fix seqrch query truncating.
GitOrigin-RevId: 2c0ae82d21a0faf248bc6f0fc428b567fc66b031
2019-03-03 04:23:57 +03:00
levlam
026863bf09 Fix get_dialog_message_by_date.
GitOrigin-RevId: efb19a9b3f174f45da9296615d270de2e384f31b
2019-02-20 05:44:54 +03:00
Arseny Smirnov
20bfcaa979 Use LOG_CHECK where it is necessary
GitOrigin-RevId: a8bd17cc2ee6e43dcea52bb25aef9ee1f91c7ec4
2019-02-12 19:17:20 +03:00
levlam
0075f91e2e Unify spelling of "expires_".
GitOrigin-RevId: 46aaff38317dd490f9d5a1250e426d94cb8aba75
2019-02-10 03:45:15 +03:00