Commit Graph

1610 Commits

Author SHA1 Message Date
levlam
0e961b0be7 Move dummyUpdate/updateSentMessage to UpdatesManager. 2021-01-16 01:51:01 +03:00
levlam
ef920f297d Move handling of pending pts updates to UpdatesManager. 2021-01-16 01:17:35 +03:00
levlam
3c1341731c Move check_pts_update to UpdatesManager. 2021-01-15 23:39:34 +03:00
levlam
10ec257921 Hide message interaction info for yet unsent supergroup messages. 2021-01-15 14:01:48 +03:00
levlam
36b4c55927 Remove force_apply from add_pending_update. 2021-01-12 01:52:10 +03:00
levlam
efec8787d8 Add MessagesManager::check_pts_update. 2021-01-11 23:31:25 +03:00
levlam
c5549b7346 Improve log messages. 2021-01-08 16:05:16 +03:00
levlam
c271524019 Treat updates with too big pts as outdated. 2021-01-08 14:43:00 +03:00
levlam
eab5532688 Fix applying of postponed pts updates. 2021-01-08 14:37:50 +03:00
levlam
82f0386e73 Move some functions from misc.h to algorithm.h. 2021-01-01 16:01:03 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
d9fa3b3f36 Fix CHECK. 2021-01-01 02:21:50 +03:00
levlam
371ec422e6 Don't fix reply_to_message_id in message thread drafts. 2020-12-30 15:09:41 +03:00
levlam
b1ffe39759 Improve "Restore pts" warnings. 2020-12-30 14:57:43 +03:00
levlam
f7c01e88e3 Add comment. 2020-12-29 15:51:12 +03:00
levlam
ccd99ac16a Do not treat empty messages as deleted for bots. 2020-12-29 15:44:43 +03:00
levlam
1c150610d0 Silence expected warning. 2020-12-29 15:32:36 +03:00
levlam
8139e0d560 Update forward_count and thread reply_info only after updateNewMessage is sent. 2020-12-28 16:58:50 +03:00
levlam
6af4338f8b Add MessagesManager::update_forward_count. 2020-12-28 16:21:39 +03:00
levlam
5f02a34c34 Don't hide reply info for yet unsent messages. 2020-12-28 15:19:56 +03:00
levlam
30d912bd4b Set is_pinned flag for last_pinned_message_id. 2020-12-26 01:05:24 +03:00
levlam
9ca42ec8da Check message pts before merging files. 2020-12-25 16:12:09 +03:00
levlam
b70eb33158 Save pts of the last processed message edit. 2020-12-25 03:31:12 +03:00
levlam
ebc4e57da7 Minor improvements of process_update. 2020-12-25 03:19:10 +03:00
levlam
a8377db05d Simplify handling of updateNewChannelMessage and updateEditChannelMessage. 2020-12-25 02:56:22 +03:00
levlam
b867a597e8 Simplify add_pending_channel_update calls. 2020-12-25 02:37:14 +03:00
levlam
d191bc49b6 Save updates with pts_count == 0 to postpone setting their promises. 2020-12-25 01:32:31 +03:00
levlam
4a28b98022 Pass promise to add_pending_channel_update. 2020-12-25 00:20:21 +03:00
levlam
3dbc996acc Postpone pts updates, which can't be applied right now. 2020-12-24 23:32:32 +03:00
levlam
4ea10b3de6 Pass promise to MessagesManager::add_pending_update. 2020-12-24 21:56:15 +03:00
levlam
7d73126506 Add success promise to on_get_updates. 2020-12-21 22:06:52 +03:00
levlam
f11877f6ed Remove null messages from search-like request responses. 2020-12-20 14:08:11 +03:00
levlam
bbde4f32c6 Allow to specify emoji for sent stickers. 2020-12-19 14:31:42 +03:00
levlam
8dd4fe3166 Separately apply versioned and unversioned group call updates. 2020-12-18 16:23:49 +03:00
levlam
e856788f52 Reload group call when chat is opened. 2020-12-17 18:38:27 +03:00
levlam
2a50685321 Add separate GroupCallManager::on_update_group_call_rights method. 2020-12-17 18:27:01 +03:00
levlam
415a64ff24 Allow loading channel participants without bot info. 2020-12-16 17:43:34 +03:00
levlam
d165a87b73 Reload group call if rights has changed. 2020-12-16 16:38:06 +03:00
levlam
babd4dc35d Add source to on_update_dialog_group_call. 2020-12-15 19:25:07 +03:00
levlam
adca19d4da Fix group call version initialization. 2020-12-15 15:40:52 +03:00
levlam
6ca15f18c8 Move voice chat-related fields to Dialog. 2020-12-14 00:36:44 +03:00
levlam
6fdf68bad4 Store DialogId in information about group call. 2020-12-13 14:52:07 +03:00
levlam
07735c27e8 Add related to voice chats chat log event actions. 2020-12-08 20:02:12 +03:00
levlam
707f83e755 Add voice_chat_changes chat log event filter. 2020-12-08 18:42:31 +03:00
levlam
5c832cb361 Update layer 122. 2020-12-08 02:06:20 +03:00
levlam
6af2f71ddd Get unknown speaking users from the server by their user_id. 2020-12-07 00:38:23 +03:00
levlam
91d4b57713 Add recent group call speakers. 2020-12-06 10:40:26 +03:00
levlam
fcbc9915bd Try not to update twice message interaction info. 2020-12-05 16:23:22 +03:00
levlam
ce4054c5d4 Add messageGroupCall and messageInviteToGroupCall. 2020-11-24 14:33:16 +03:00
levlam
ea6cdde0c5 Fix MSVC 15.3 CE. 2020-11-20 02:03:39 +03:00