Commit Graph

2233 Commits

Author SHA1 Message Date
levlam
163e739302 Add set_promises/fail_promises helper functions. 2022-04-13 17:40:12 +03:00
levlam
2696a4abbb Restore failed to delete messages. 2022-04-12 17:34:08 +03:00
levlam
877452f6ce Add Global::get_retry_after. 2022-04-12 16:12:22 +03:00
levlam
7a2b3abe18 Support new NotificationSound. 2022-04-11 20:01:44 +03:00
levlam
bb8c4ca42c Fix updating of Dialog.available_reactions_generation. 2022-04-11 16:01:30 +03:00
levlam
80d57a493f Move get_input_notify_peer to NotificationSettingsManager. 2022-04-11 13:06:16 +03:00
levlam
9fd72e86d0 Move scope notification settings tp NotificationSettingsManager. 2022-04-11 12:45:52 +03:00
levlam
b3a0c1dcda Fix notifications settings of newly created chats. 2022-04-08 18:08:06 +03:00
levlam
cb5fe8c7cd Move some related to notification settings methods to NotificationSettingsManager. 2022-04-08 17:17:56 +03:00
levlam
161d34fc15 Keep in chat list empty joined basic groups. 2022-04-08 15:35:21 +03:00
levlam
7c4f3c79ef Suppress expected error. 2022-04-04 20:05:34 +03:00
levlam
1f11239255 Use InvokeAfter for some chat-related requests. 2022-04-04 20:01:56 +03:00
levlam
c5d58a8158 Add source to MessagesManager::repair_server_unread_count. 2022-04-04 19:29:03 +03:00
levlam
da3baf09e9 Improve logging. 2022-04-04 19:08:47 +03:00
levlam
1d6488ab09 Add ContactsManager::is_broadcast_channel/is_megagroup_channel helpers. 2022-04-04 15:48:33 +03:00
levlam
a8a343704a Add ChannelType.h. 2022-04-04 15:35:09 +03:00
levlam
7f587c24d9 Replace get_restricted_rights with RestrictedRights constructors. 2022-04-04 14:13:51 +03:00
levlam
df24a2ec90 Add td_api::openWebView. 2022-03-31 15:05:08 +03:00
levlam
3b78712b71 Disable reaction count reloading right after it was set. 2022-03-30 11:36:52 +03:00
levlam
8d35ac0b72 Avoid duplicate source in on_get_users/chats. 2022-03-29 15:54:36 +03:00
levlam
759d02770d Allow to use deleteChatHistory to revoke messages for all members in some channels. 2022-03-29 12:14:21 +03:00
levlam
977ebca580 Allow owner to clear basic group history for everyone. 2022-03-28 21:23:12 +03:00
levlam
0375704460 Use get_input_user instead of have_input_user. 2022-03-28 20:26:28 +03:00
levlam
e8a82f9e70 Add td_api::messageWebViewDataSent/messageWebViewDataReceived. 2022-03-28 10:01:39 +03:00
levlam
479667dd1a Update layer to 140. 2022-03-18 14:46:01 +03:00
levlam
62b99ba52a Allow server to add reply_to_message_id for yet unsent messages. 2022-03-23 21:16:02 +03:00
levlam
358f9bb1ad Pass dialog_id to register_message_reply. 2022-03-23 18:27:17 +03:00
levlam
ff014add18 Reget message from server after failed to get its thread with MSG_ID_INVALID. 2022-03-22 14:59:57 +03:00
levlam
dfe41c9a0d Remove too new messages in on_get_history beforehand just in case. 2022-03-21 20:14:26 +03:00
levlam
ac4e273274 Move logging of expected errors to ERROR. 2022-03-21 19:52:07 +03:00
levlam
a434bad933 Improve error messages for forwards of messages with protected content. 2022-03-16 15:56:01 +03:00
levlam
37123a50ff Don't create vectors using set iterators. 2022-03-12 13:22:07 +03:00
levlam
1f38124861 Use FlatHashSet. 2022-03-11 21:38:48 +03:00
levlam
8b16cf7271 Make all fields in Dependencies class private. 2022-03-11 15:31:28 +03:00
levlam
a136a9d22b Move methods inside Dependencies class. 2022-03-11 15:10:24 +03:00
levlam
88ce431f39 Minor fixes. 2022-03-09 03:27:03 +03:00
levlam
83d26f3335 Add parameter only_preview to sendMessageAlbum. 2022-02-22 22:42:46 +03:00
levlam
679b70efa5 Return message objects from MessagesManager::send_message_group. 2022-02-22 21:51:35 +03:00
levlam
4e1f2cbf8b Add td_api::searchOutgoingDocumentMessages. 2022-02-22 15:58:16 +03:00
levlam
985927fa2a Never fetch reactions for service messages. 2022-03-08 21:05:46 +03:00
levlam
7102117ed4 Send at most one getMessageViews query for a given message. 2022-03-07 20:17:00 +03:00
levlam
ceb966123b Poll message views every 15 seconds. 2022-03-07 15:34:07 +03:00
levlam
a2d7450d55 Update message reactions, only if the user is online. 2022-03-07 15:24:45 +03:00
levlam
8f5bac2fe0 Reload message reactions every 15 seconds. 2022-03-07 15:20:22 +03:00
levlam
c5908619c2 Reload reactions in new viewed messages. 2022-03-07 14:27:42 +03:00
levlam
04aabd8825 Don't allow to add yet unsent messages to downloads. 2022-03-04 15:16:20 +03:00
levlam
fdd218de4a Reset updateFileDownloads after all downloaded messages are viewed. 2022-03-03 13:44:05 +03:00
levlam
4d7afaedbb Improve DownloadManager initialization. 2022-03-01 23:09:40 +03:00
levlam
119999e684 Improve log message. 2022-03-01 22:12:59 +03:00
levlam
a59e6b8ffe Add static_assert that flag in STORE_FLAG/PARSE_FLAG is bool. 2022-03-01 21:39:24 +03:00