Commit Graph

9752 Commits

Author SHA1 Message Date
levlam
b6a6c07de5 Add optional source to MultiTimeout::cancel_timeout. 2023-03-17 01:02:30 +03:00
levlam
f294f8c47e Split parse_internal_link test to avoid GCC warning. 2023-03-17 00:42:23 +03:00
levlam
897319a275 Add more is_bot checks. 2023-03-16 23:38:03 +03:00
levlam
f282e2b6ac Pass NotificationInfo to get_next_notification_id. 2023-03-16 23:11:08 +03:00
levlam
ad08cc1775 PAss NotificationInfo to *notification_id_to_message_id_correspondence. 2023-03-16 23:07:12 +03:00
levlam
7406361444 Improve NotificationInfo field names. 2023-03-16 22:57:14 +03:00
levlam
ea2567f5d0 Move max_notification_message_id to NotificationInfo. 2023-03-16 22:54:03 +03:00
levlam
b01ee666e9 Add struct NotificationInfo. 2023-03-16 22:38:29 +03:00
levlam
96981eed53 Add get_notification_group_info helper. 2023-03-16 20:39:00 +03:00
levlam
b19a1f5ba4 Move scheduled message info into a class. 2023-03-16 20:10:54 +03:00
levlam
c9a1d5bee6 Move read_history_log_event_ids out of Dialog. 2023-03-16 18:21:51 +03:00
levlam
a9e70dcafc Move updated_read_history_message_ids out of Dialog. 2023-03-16 18:05:36 +03:00
levlam
3a1aaa1148 Move suffix load out of Dialog. 2023-03-16 17:54:33 +03:00
levlam
97fa882a8f Move pending_viewed_live_locations out of Dialog. 2023-03-16 16:15:54 +03:00
levlam
0ffd1718be Fix partial location check. 2023-03-16 14:11:41 +03:00
levlam
d26b0f42e8 Fix condition. 2023-03-15 23:51:15 +03:00
levlam
365c639c22 Move pending message views out of Dialog. 2023-03-15 23:45:30 +03:00
levlam
1b23cf0478 Don't use yet_unsent_thread_message_ids_ for bots. 2023-03-15 17:01:38 +03:00
levlam
7d99fc50ed Move yet_unsent_thread_message_ids out of Dialog. 2023-03-15 16:59:23 +03:00
levlam
78d5146188 Move yet_unsent_message_id_to_persistent_message_id out of each Dialog. 2023-03-15 16:50:56 +03:00
levlam
5ee1c751f9 Remove debug_message_op. 2023-03-15 16:26:22 +03:00
levlam
37436227f3 Decrease memprof backtrace shift. 2023-03-15 16:04:15 +03:00
levlam
969e239e56 Fix warning. 2023-03-15 15:32:00 +03:00
levlam
add71b25c9 Drop requests after few retries if failed to return profile photos. 2023-03-15 14:00:34 +03:00
levlam
56a93292bb Support multiple retries for getUserProfilePhotos. 2023-03-15 13:51:35 +03:00
levlam
1153e5464d Support multiple getUserProfilePhotos requests. 2023-03-15 13:33:41 +03:00
levlam
e5cb2fa963 Add call_source to register_photo_size. 2023-03-15 00:23:41 +03:00
levlam
0dc9aac724 Add source to PhotoSizeSource::get_unique. 2023-03-15 00:18:34 +03:00
levlam
a4c7d25c69 Ignore invalid partial locations. 2023-03-14 23:56:23 +03:00
levlam
b1f16cffb2 Improve error message. 2023-03-14 23:39:59 +03:00
levlam
cf9d70f645 Improve error message. 2023-03-14 23:31:57 +03:00
levlam
387e84004b Ignore invalid polls stored in database. 2023-03-14 23:24:19 +03:00
levlam
4c390b4988 Don't use poll multi-timeouts while closing. 2023-03-14 23:20:05 +03:00
levlam
489e5dbc62 Add debug logging. 2023-03-14 22:43:28 +03:00
levlam
487ecfc87e Always restart upload when known file prefix decreases. 2023-03-14 22:35:08 +03:00
levlam
4938e6dda7 Fix auth.sentCodeSuccess handling. 2023-03-14 21:45:23 +03:00
levlam
c602c09f79 Increase backtrace hashtable size. 2023-03-14 15:55:03 +03:00
levlam
1673d2366b Log real pong/read time. 2023-03-14 15:45:01 +03:00
levlam
28e788995a Fix log message. 2023-03-14 15:30:43 +03:00
levlam
0293189b62 Allow to ignore background updates when file database is used. 2023-03-14 01:50:33 +03:00
levlam
d132c3e50d Add Global::keep_media_order. 2023-03-14 01:48:32 +03:00
levlam
d6faa001e2 Add Global::use_sqlite_pmc. 2023-03-14 01:41:04 +03:00
levlam
47bd6b4ded Don't cancel NotificationManager timeouts while closing. Callbacks will do nothing anyway. 2023-03-13 23:33:31 +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
367d3eaa2b Move ignore_background_updates() to Td. 2023-03-13 21:13:59 +03:00
levlam
af838647df Explicitly pass use_secret_chats to SecretChatsManager. 2023-03-13 20:35:19 +03:00