Commit Graph

128 Commits

Author SHA1 Message Date
levlam
2aeeb09b4d Add log event for story reading. 2023-06-15 15:25:32 +03:00
levlam
7ca2061848 Add DeleteStoryOnServerLogEvent. 2023-06-01 17:41:46 +03:00
levlam
64312c9b04 Drop some Sqlite PMC values when dialog database is recreated. 2023-05-15 19:02:58 +03:00
levlam
88ab425758 Reload marks as unread if there is no message database. 2023-05-15 18:20:24 +03:00
levlam
e626b5f68f Drop binlog events if message database was deleted. 2023-05-15 18:16:55 +03:00
levlam
1ce19c89ed Inline TdDb::binlog_path/sqlite_path. 2023-03-13 22:41:59 +03:00
levlam
201ac65a73 Don't store sqlite_path_ explicitly. 2023-03-13 22:34:23 +03:00
levlam
47c4d50907 Add TdDb::Parameters. 2023-03-13 22:29:56 +03:00
levlam
03e7c4ce7c Improve files_directory checking. 2023-03-13 21:33:35 +03:00
levlam
5b4f29e781 fix database parameters in the database thread, 2023-03-13 21:32:12 +03:00
levlam
f1311610e5 Remove unneeded TdParameters.h includes. 2023-03-13 20:10:18 +03:00
levlam
2baff56b7a Don't store TdParameters in Td. 2023-03-13 16:30:11 +03:00
levlam
22fdc0258b Use "receive"/"have"/"loaded" instead of "got" and other log message improvements. 2023-02-26 14:22:31 +03:00
levlam
47fd88b33f Add and use "since_last_open" internal option. 2023-01-30 01:29:33 +03:00
levlam
337aef5c02 Support chat.is_translatable, toggleChatIsTranslatable and updateChatIsTranslatable. 2023-01-20 12:38:25 +03:00
levlam
e3951e524c Fix warning. 2023-01-04 17:49:53 +03:00
levlam
c06ae49db4 Log if instance wasn't launched for more than 24 hours. 2023-01-03 13:54:49 +03:00
levlam
4258030967 Drop cached attachment menu bots when database is deleted. 2023-01-02 13:51:04 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
b0bfdd2b35 Improve setTdlibParameters errors. 2022-12-30 23:13:40 +03:00
levlam
f43956f25d Disable message thread database for now. 2022-11-12 09:59:56 +03:00
levlam
73adf2827f Add MessageThreadDatabase. 2022-11-10 19:46:17 +03:00
levlam
f78bf4005e Flush DialogDb on closing. 2022-11-10 19:20:17 +03:00
levlam
8e32de133a Rename MessagesDb to MessageDb. 2022-11-09 20:35:22 +03:00
levlam
43deaf4502 Add td_api::deleteForumTopic. 2022-10-30 00:35:37 +03:00
levlam
ac76e8604c Improve TdDb::check_parameters. 2022-10-24 13:37:34 +03:00
levlam
b788518f22 Add debug for get_binlog_pmc. 2022-10-22 00:38:04 +03:00
levlam
fcdd1e01d5 Destroy SQLite database if wasn't authorized. 2022-09-18 22:09:57 +03:00
levlam
297594af7e Use SqliteDb::destroy instead of plain unlink. 2022-09-18 21:35:16 +03:00
levlam
ebb6770935 Combine TdDb::check_parameters and TdDb::open. 2022-09-07 21:50:41 +03:00
levlam
c47da24430 Remove unused is_database_encrypted. 2022-09-07 21:32:40 +03:00
levlam
6898d07793 Make td_api::saveApplicationLogEvent persistent. 2022-07-18 19:21:47 +03:00
levlam
906d773d6e Fix database initialization. 2022-06-30 20:51:59 +03:00
levlam
e43d90c089 Remove unused scheduler_id parameters. 2022-06-30 00:46:02 +03:00
levlam
32724a5a6c Add and use Scheduler::run_on_scheduler. 2022-06-30 00:28:25 +03:00
levlam
ee926f86a3 Move directory creation and database check to another thread. 2022-06-21 02:02:48 +03:00
levlam
782aa6a2ec Minor fixes. 2022-06-14 16:11:38 +03:00
levlam
caf84b01b7 Fix database init. 2022-06-10 19:05:43 +03:00
Arseny Smirnov
2171452e77 init TdDb in db thread 2022-06-10 16:11:06 +02:00
levlam
f95f76c4de Support asynchronous TdDb::open. 2022-06-10 16:44:53 +03:00
levlam
9fd72e86d0 Move scope notification settings tp NotificationSettingsManager. 2022-04-11 12:45:52 +03:00
levlam
1d647c7049 Disable DownloadManager database without message database. 2022-03-02 16:36:23 +03:00
Arseny Smirnov
f13598ec83 DownloadManager: WIP 2022-02-26 19:56:43 +01:00
Arseny Smirnov
29f8f79b16 DownloadManager: WIP 2022-02-25 23:18:07 +01:00
levlam
3150b3d491 Add readAllChatReactions. 2022-01-30 12:37:24 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
6941a4500a Support deletion from database messages by sender_dialog_id. 2021-11-19 16:00:21 +03:00
levlam
4e802d67ca Move out user_version logging from WARNING. 2021-11-17 09:09:01 +03:00
levlam
93f2436f0e Use Delete..OnServer instead of Delete..FromServer. 2021-10-27 15:38:09 +03:00
levlam
8916cacd21 Improve log event name. 2021-10-27 15:27:09 +03:00