Commit Graph

10161 Commits

Author SHA1 Message Date
Fela Ameghino
90c36b602c Fixed hardcoded architecture in targets 2023-05-22 17:12:50 +03:00
levlam
89c47026e0 Fix compilation error with old compilers. 2023-05-22 16:00:14 +03:00
levlam
9756d174ee Clear contains_mention/contains_unread_mention message flags for bots. 2023-05-22 15:52:51 +03:00
levlam
fc82657626 Add create_photo function. 2023-05-22 15:35:25 +03:00
levlam
3d4b4ac014 Simplify inputMessageContent processing. 2023-05-21 23:28:34 +03:00
levlam
c70ef59cde Add get_input_thumbnail_photo_size. 2023-05-21 23:05:28 +03:00
levlam
c18818013a Add get_input_photo_size function. 2023-05-21 16:35:33 +03:00
levlam
f831357538 Make some constructors constexpr. 2023-05-21 13:21:49 +03:00
levlam
d65541d45a Use get_message_file_ids if possible. 2023-05-20 00:49:16 +03:00
levlam
3861b927ba Remove outdated comment superseded by static_assert. 2023-05-19 14:17:44 +03:00
levlam
45dfc6e51b Use FlatHashSet to store unallowed boundaries. 2023-05-19 14:03:22 +03:00
levlam
d510bc8435 Use FlatHashSet to store common TLDs. 2023-05-19 14:00:49 +03:00
levlam
1da3955271 Move Photo merging to merge_photos function. 2023-05-18 17:03:56 +03:00
levlam
2d60dadfe6 Improve important comment visibility. 2023-05-18 15:44:00 +03:00
Marco Melorio
caac73c680
Update Telegrand name and link. (#2438) 2023-05-18 15:02:16 +03:00
AYMENJD
b844da31d4 Fix misprint. 2023-05-18 15:00:38 +03:00
levlam
348a209ab7 Fix includes. 2023-05-18 14:33:00 +03:00
levlam
46b6ba578f Add FlatHashSet initialization test. 2023-05-18 13:51:27 +03:00
levlam
bd480941a1 Fix AsyncFileLog test. 2023-05-18 13:09:59 +03:00
levlam
3d06cdd94e Add --offset parameter to TestRunner. 2023-05-18 12:52:30 +03:00
levlam
fe4b1a16ef Fix warning. 2023-05-18 02:11:44 +03:00
levlam
cbb10e0f3d Remove 4-letter usernames from the list of short usernames. 2023-05-18 02:05:58 +03:00
levlam
f3a1407f8f Simplify constant FlatHashSet initialization. 2023-05-18 02:03:39 +03:00
levlam
7bea39b6fa Improve is_emoji. 2023-05-17 20:04:12 +03:00
levlam
20b312b144 Don't replace "Request aborted" errors for files. 2023-05-17 13:52:47 +03:00
levlam
f900fc2480 Remove unused Status::Error(). 2023-05-17 13:50:36 +03:00
levlam
d93c06fceb Remove unsafe Status::operator==. 2023-05-17 13:45:26 +03:00
levlam
5b09f60629 Log message_id of all outgoing messages. 2023-05-17 13:19:40 +03:00
levlam
bce488f6bf Log message_id of all incoming packets. 2023-05-17 13:00:21 +03:00
levlam
b48668e8bb Fix misprint. 2023-05-16 21:53:55 +03:00
levlam
7df9b39186 Improve logging of server time difference updates. 2023-05-15 20:23:38 +03:00
levlam
43e4746d2a Remove uninitialized MsgInfo.session_id. 2023-05-15 19:40:27 +03:00
levlam
93d283aca6 Improve parameter names. 2023-05-15 19:30:44 +03:00
levlam
64312c9b04 Drop some Sqlite PMC values when dialog database is recreated. 2023-05-15 19:02:58 +03:00
levlam
88ab425758 Reload marks as unread if there is no message database. 2023-05-15 18:20:24 +03:00
levlam
e626b5f68f Drop binlog events if message database was deleted. 2023-05-15 18:16:55 +03:00
levlam
8880e56967 Remove expected error logging. 2023-05-15 15:55:56 +03:00
levlam
9cd859d313 Resave sticker set without stickers only if it has already been inited. 2023-05-15 15:27:23 +03:00
levlam
9b4de71f28 Remove expected error logging. 2023-05-15 14:49:37 +03:00
levlam
48a97d5497 Resave changed sticker set to database. 2023-05-15 14:10:35 +03:00
levlam
012424074b Expect that short name of sticker sets can change. 2023-05-15 14:00:37 +03:00
levlam
5f5f4029e0 Fix error logging. 2023-05-15 13:40:02 +03:00
levlam
18646d6d49 Load expired messages from database in small batches. 2023-05-15 13:28:23 +03:00
levlam
a14a07c33d Remove lower bound check for ttl_expires_at. 2023-05-15 13:04:03 +03:00
levlam
7d3fea5a70 Improve log messages. 2023-05-15 12:37:49 +03:00
levlam
c7b9d54fdb Fix inputChannelFromMessage support. 2023-05-15 11:47:05 +03:00
levlam
aa52648565 Suppress more SQLite errors. 2023-05-15 11:01:26 +03:00
levlam
5d499d594c Reset server time difference if it is more than 15 seconds in the future. 2023-05-14 23:11:23 +03:00
levlam
a395337265 Fix session_id type. 2023-05-14 23:00:56 +03:00
levlam
f29774acc6 Fix message_id type. 2023-05-14 22:42:58 +03:00