Commit Graph

9493 Commits

Author SHA1 Message Date
levlam
2d2446ae77 Improve updating of reply info. 2022-11-19 11:21:41 +03:00
levlam
fe7ea9bac9 Invalidate ChannelFull instead of running getDifference if appropriate. 2022-11-18 18:05:04 +03:00
levlam
a4a7d7264e Try to add user to channel after unrestricting. 2022-11-18 17:49:11 +03:00
levlam
f18d1455cf Improve parameters name. 2022-11-18 17:05:52 +03:00
levlam
2fad9afd49 Hide comments button if the user is banned in the discussion group. 2022-11-18 16:35:16 +03:00
levlam
f1ee808465 Fix warning. 2022-11-18 15:19:01 +03:00
levlam
47aa5b51c7 Improve log guard. 2022-11-18 14:33:23 +03:00
levlam
f8e2af3f59 Rename size() to calc_size() for WaitFree hash tables. 2022-11-18 13:16:24 +03:00
levlam
35a9a4b785 Make WaitFreeHashSet recursive. 2022-11-18 13:08:04 +03:00
levlam
e7b7217256 Make WaitFreeHashMap recursive. 2022-11-18 12:53:26 +03:00
levlam
a1f19371b0 Improve to_integer_safe error message. 2022-11-18 00:25:36 +03:00
levlam
5081ef4c2a Use WaitFreeHashMap to store nodes in FileReferenceManager. 2022-11-17 19:13:36 +03:00
levlam
f085e7eea3 Use request promise in setBackground. 2022-11-17 18:48:48 +03:00
levlam
63b528f213 Speculatively add channel users added through addChatMembers. 2022-11-17 18:10:26 +03:00
levlam
830806937e Improve source type in on_get_channel_error/on_get_dialog_error. 2022-11-17 14:18:11 +03:00
levlam
9f39aeecdf Add source to invalidate_channel_full. 2022-11-17 14:01:08 +03:00
levlam
3143d0ead7 Add search text for topic service messages. 2022-11-17 13:22:24 +03:00
levlam
66032b4ccf Use get_next_message_id. 2022-11-16 23:55:45 +03:00
levlam
2e6ac1f22c Simplify authorization state timeout handling. 2022-11-15 11:36:39 +03:00
levlam
b2b59b02be Add draft of history generation for better gap handling. 2022-11-14 20:12:23 +03:00
levlam
3373ac8aa8 Don't replace cached file_id of being uploaded files. 2022-11-14 18:30:10 +03:00
levlam
59d4248efb Add voluntary spin lock for logging to reduce conflicts with stderr. 2022-11-14 14:34:31 +03:00
levlam
0461aff289 Hide replies to root message in topic messages. 2022-11-14 14:23:39 +03:00
levlam
ecceb1c472 Fix file registration. 2022-11-13 11:56:52 +03:00
levlam
73049c6c89 Improve logging. 2022-11-13 11:11:18 +03:00
levlam
f6f94e5255 Improve getRepliedMessage. 2022-11-13 03:13:11 +03:00
levlam
1d672470ea Don't register VoiceNote and VideoNote messages for bots. 2022-11-12 10:51:57 +03:00
levlam
f43956f25d Disable message thread database for now. 2022-11-12 09:59:56 +03:00
levlam
348ee9a95b Remove unused return value in FileManager::merge. 2022-11-12 09:54:23 +03:00
levlam
b29fc78f85 Merge downloaded and generated files as early as possible to avoid pinning and keeping of a temporary file_id for local location. 2022-11-12 09:47:33 +03:00
levlam
f5872ee11a Avoid deletion of message files for bots. 2022-11-11 23:13:44 +03:00
levlam
97f14fb6a9 Fix remove_emoji_modifiers. 2022-11-11 22:20:38 +03:00
levlam
e35a81dbe9 Pin only main file_id. 2022-11-11 21:09:57 +03:00
levlam
8b64142af4 Reduce boundary for file identifier number warnings. 2022-11-11 16:54:13 +03:00
levlam
ba5b950055 Don't clear draft when inline message is sent not from input field. 2022-11-11 16:11:55 +03:00
levlam
f670d646c9 Unload at most 5000 messages at a time. 2022-11-11 16:06:05 +03:00
levlam
e8b8f3eb88 Create SslStream from SslCtx. 2022-11-11 14:51:22 +03:00
levlam
28d1dd02e9 Make SslCtx public. 2022-11-11 14:23:43 +03:00
levlam
32456872af Decrease the maximum number of kept TQueue events. 2022-11-10 21:18:13 +03:00
levlam
ce3a86e721 Fix dropping of MessageReplyInfo. 2022-11-10 20:46:20 +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
71e3011afa Implement get_scheduler_thread_id without threads. 2022-11-09 18:11:48 +03:00
levlam
8b4bc80860 Fix AsyncFileLog building without threads. 2022-11-09 14:48:14 +03:00
levlam
52aa76584a Improve TQueue::clear. 2022-11-08 17:27:02 +03:00
levlam
5945cc9b70 Add TQueue::clear. 2022-11-08 17:04:45 +03:00
levlam
3592494daf Don't send updates about unloading from cache of unknown to app messages. 2022-11-08 14:00:11 +03:00
levlam
ef5107fcc4 Remove unused from_cache parameter in send_update_delete_messages. 2022-11-08 13:43:46 +03:00
levlam
7eba19887a Remove ignored Status responses from DialogDb. 2022-11-07 23:19:32 +03:00