Commit Graph

11245 Commits

Author SHA1 Message Date
levlam
367b2af164 Make MessageOrigin fields private. 2023-10-09 21:29:23 +03:00
levlam
94f72a026c Inline last usage of MessagesManager::is_forward_info_sender_hidden. 2023-10-09 21:27:14 +03:00
levlam
21068870f0 Add MessageOrigin::hide_sender_if_needed. 2023-10-09 21:24:22 +03:00
levlam
b10220a495 Add MessageOrigin::has_sender_signature(). 2023-10-09 21:16:06 +03:00
levlam
ae6e8b5a91 Add MessageOrigin::get_sender_name(). 2023-10-09 21:10:09 +03:00
levlam
9e82513802 Add and use MessageOrigin::get_message_full_id. 2023-10-09 20:44:44 +03:00
levlam
7b1408d44e Add and use MessageOrigin::get_sender. 2023-10-09 20:06:23 +03:00
levlam
8da2eba168 Add MessageOrigin::add_user_ids/add_channel_ids. 2023-10-09 19:20:53 +03:00
levlam
c05b5ba3e5 Add MessageOrigin::add_dependencies. 2023-10-09 18:56:21 +03:00
levlam
c86d4d1036 Add class MessageOrigin. 2023-10-09 18:48:01 +03:00
levlam
d9d3697987 Remove imported check from is_forward_info_sender_hidden. 2023-10-09 14:23:22 +03:00
levlam
13d02a8644 Add separate class messageImportInfo. 2023-10-09 12:20:32 +03:00
levlam
b5bf594662 Improve messageBotWriteAccessAllowed class. 2023-09-28 15:15:00 +03:00
levlam
e3d89cf90f Add messageReaction.used_sender_id. 2023-09-28 14:32:08 +03:00
levlam
0fd3c55547 Add addedReaction.is_outgoing. 2023-09-28 13:25:33 +03:00
levlam
7d2d0b9f2e Improve names of MessageReaction functions. 2023-09-27 17:25:03 +03:00
levlam
4a02f50969 Add chatBoostStatus.boost_url. 2023-09-25 18:40:55 +03:00
levlam
9a40ea0f10 Update layer to 165. 2023-09-25 18:16:26 +03:00
levlam
de32750836 Use Dependencies to load data for binlog events if appropriate. 2023-10-08 23:16:59 +03:00
986f1ab469 Fix typo in docs 2023-10-07 11:49:40 +03:00
levlam
4eb9020d53 Use FlatHashSet for disallowed subdomains. 2023-10-07 11:46:47 +03:00
levlam
409dda8d77 Add more t.me subdomains to exceptions. 2023-10-07 11:42:20 +03:00
levlam
06e01a9ebd Avoid 'Access is denied. : 5 : File "server" can't be opened/created for reading' error in tests. 2023-10-06 00:29:08 +03:00
levlam
6c88f6dbfe Update list of TLDs. 2023-10-06 00:22:43 +03:00
levlam
e0731b1935 Don't use deprecated EM_LOG_FUNC_PARAMS flag. 2023-10-05 23:23:20 +03:00
levlam
9289270cd9 Close databases and binlog on another thread. 2023-10-05 21:50:53 +03:00
levlam
b41a51f2ec Use add_to_top if possible. 2023-10-04 16:18:20 +03:00
levlam
14b10c7682 Fix my recent chosen reaction chat id also for objects received from the server. 2023-10-04 16:02:53 +03:00
levlam
74679944af Remove error-prone server_time_cached. 2023-10-04 12:24:58 +03:00
levlam
2a0d757ec6 Explicitly pass Unix time to can_get_story_viewers. 2023-10-04 11:28:56 +03:00
levlam
83b3d57684 Add StringBuilder::print_int benchmarks. 2023-10-03 02:24:09 +03:00
levlam
c299889991 Add add_to_top benchmark. 2023-10-02 22:17:23 +03:00
levlam
51e23dd458 Decrease MIN_DELETED_ASYNCHRONOUSLY_MESSAGES. 2023-10-02 20:38:59 +03:00
levlam
ceaa37fe0d Simplify set_dialog_is_pinned implementation. 2023-10-01 21:49:15 +03:00
levlam
c474942666 Use add_to_top. 2023-10-01 21:17:30 +03:00
levlam
16cec9c2fb Add td::add_to_top. 2023-10-01 20:59:29 +03:00
levlam
72b8a29d89 Fix documentation misprint. 2023-09-30 01:43:43 +03:00
levlam
6076e0e2a6 Pass field names as Slice for another 15% speed up. 2023-09-29 14:05:21 +03:00
levlam
d84a021a48 Use StringBuilder in TlStorerToString to speed up it 2 times. 2023-09-29 13:48:22 +03:00
levlam
811f90da2f Add StringBuilder::append_char. 2023-09-29 13:13:56 +03:00
levlam
69b46d846c Add to_string benchmark. 2023-09-29 13:00:52 +03:00
levlam
97ec3eacf4 Fix get_percentage_value. 2023-09-28 19:54:36 +03:00
levlam
5c93447ade Increase MessageUnsupported version to reget messages with boost links. 2023-09-28 19:04:50 +03:00
levlam
5d7f34f659 Add StoryManager::has_unexpired_viewers. 2023-09-28 16:31:17 +03:00
levlam
5b072215a7 Improve media_timestamp documentation. 2023-09-28 00:53:10 +03:00
levlam
469f87c2bc Allow to remove media_album_id for yet unsent messages. 2023-09-28 00:50:09 +03:00
levlam
32df5ab459 Fix documentation misprints. 2023-09-28 00:44:35 +03:00
levlam
a65f14fff6 Improve log messages. 2023-09-27 16:22:16 +03:00
levlam
a6389d3520 Recheck active stories if failed to find some of them. 2023-09-27 16:15:18 +03:00
levlam
7b9abf3eca Explicitly restart timeout. 2023-09-27 15:31:34 +03:00