Commit Graph

8837 Commits

Author SHA1 Message Date
levlam
ee381ecbb5 Avoid force_reuse even for message photos. 2022-09-20 00:26:22 +03:00
levlam
74879d9726 Move PerfWarningTimer to SessionConnection::do_flush. 2022-09-19 21:33:23 +03:00
levlam
275ee280d2 Use thread-local EVP_MD_CTX in OpenSSL 3.0. 2022-09-19 18:17:51 +03:00
levlam
06e1ebf809 Add check just in case. 2022-09-19 16:34:28 +03:00
levlam
b9bd024969 Update message notifications after external changes of message content. 2022-09-19 16:26:56 +03:00
levlam
bb6fc999f8 Add on_message_notification_changed function. 2022-09-19 16:19:59 +03:00
levlam
618bface99 Save voice message to database when it is recognized. 2022-09-19 11:15:13 +03:00
levlam
8d0cb5b82d Return is_content_changed from update_message_content. 2022-09-19 01:12:20 +03:00
levlam
5cf248ae01 Call on_message_changed after send_update_message_content. 2022-09-19 01:05:23 +03:00
levlam
51403c883c Avoid usage of send_update_message_content with dialog_id. 2022-09-19 00:29:31 +03:00
levlam
91c54cc748 Move send_update_message_content out of update_message_content. 2022-09-19 00:24:15 +03:00
levlam
fcdd1e01d5 Destroy SQLite database if wasn't authorized. 2022-09-18 22:09:57 +03:00
levlam
12a8a5dbda Fix error handling in ReadFeaturedStickerSetsQuery. 2022-09-18 21:57:13 +03:00
levlam
297594af7e Use SqliteDb::destroy instead of plain unlink. 2022-09-18 21:35:16 +03:00
levlam
cb70993b90 Fix buggy behavior of pthread_setaffinity_np/pthread_getaffinity_np on NetBSD. 2022-09-17 23:25:42 +03:00
levlam
e37f3c17af Fix warnings. 2022-09-17 22:54:21 +03:00
levlam
9bf5d57851 Add TD_HAVE_THREAD_AFFINITY macros. 2022-09-17 21:58:00 +03:00
levlam
b8abc6c19e Support CPU affinity on NetBSD. 2022-09-17 21:48:16 +03:00
levlam
b47fce0d95 Support CPU affinity on FreeBSD. 2022-09-17 14:45:42 +03:00
levlam
9d5c151a3f Use DWORD as thread::id on Windows. 2022-09-17 13:21:04 +03:00
levlam
0cc3fb0e9d Include pthread.h on OpenBSD for pthread_t definition. 2022-09-17 01:37:05 +03:00
levlam
15db91b536 Update version to 1.8.6. 2022-09-16 21:38:09 +03:00
levlam
aeed5107b7 Fix Slice lifetime. 2022-09-16 13:56:56 +03:00
levlam
b76a920db8 Open Telegraph links in instant view. 2022-09-16 13:51:52 +03:00
levlam
47d4101def Add enum LinkType. 2022-09-16 13:20:19 +03:00
levlam
0025c4164b Add internalLinkTypeInstantView. 2022-09-16 01:30:54 +03:00
levlam
d2ad29725d Replace actor in chatEventMessagePinned/chatEventMessageUnpinned. 2022-09-15 21:35:37 +03:00
levlam
ce1292ea32 Allow to always reuse photos from inputMessagePhoto. 2022-09-15 16:08:19 +03:00
levlam
111018eadd Add logging for some slow operations. 2022-09-15 15:03:19 +03:00
levlam
e087521b01 Fix compilation error. 2022-09-14 19:02:49 +03:00
levlam
7922df1039 Explicitly ignore failure to set thread affinity mask. 2022-09-14 18:21:41 +03:00
levlam
e5fbb33555 Remove all chosen reactions, exceeding reaction limit. 2022-09-14 17:55:02 +03:00
levlam
cef7ca17f3 Always show all reaction choosers in private chats. 2022-09-14 17:15:12 +03:00
levlam
534f17e784 Randomize delays between failed getChannelDifference. 2022-09-14 16:41:59 +03:00
levlam
c646e43e37 Minor improvements. 2022-09-14 16:31:47 +03:00
levlam
b49b669ac1 Support affinity mask on Linux. 2022-09-14 15:33:16 +03:00
levlam
1ac2dfef30 Replace ConcurrentScheduler::init with constructor. 2022-09-14 15:06:52 +03:00
levlam
70e3586626 Allow to specify affinity mask for concurrent scheduler threads. 2022-09-14 14:49:48 +03:00
levlam
0eddd8d405 Add thread::set_affinity_mask/get_affinity_mask. 2022-09-14 14:38:14 +03:00
levlam
5f98548e02 Use STL thread only on Windows. 2022-09-14 14:19:09 +03:00
levlam
273ae92a14 Use HANDLE as thread id on Windows. 2022-09-14 14:18:42 +03:00
levlam
03db53281c Remove this_thread::yield for TD_THREAD_UNSUPPORTED. 2022-09-14 14:10:33 +03:00
levlam
124b0dee6c Ensure that custom reactions aren't added twice. 2022-09-13 19:39:35 +03:00
levlam
30b961aebf Sort reactions returned in getMessageAvailableReactions. 2022-09-13 19:19:35 +03:00
levlam
5213561096 Make non-const MessageReaction functions private. 2022-09-13 15:35:18 +03:00
levlam
38fbd00e99 Add and use get_reactions_hash. 2022-09-12 21:55:30 +03:00
levlam
8e5dccbdb5 Fix updating of active reactions in MessagesManager. 2022-09-12 21:39:23 +03:00
levlam
999326d56a Locally add reaction to recent. 2022-09-12 20:17:14 +03:00
levlam
164f5e97fd Support telegram_api::updateRecentReactions. 2022-09-12 19:52:08 +03:00
levlam
f85b79d9bc Add td_api::clearRecentReactions. 2022-09-12 19:37:45 +03:00