Commit Graph

12393 Commits

Author SHA1 Message Date
levlam 552e6ba35a Add TimeZoneManager. 2024-02-19 14:34:28 +03:00
levlam dc2300d7ae Update layer to 176. 2024-02-19 14:07:10 +03:00
levlam 1c06f69a03 Move on_view_dialog_active_stories to StoryManager. 2024-03-06 14:46:52 +03:00
levlam 0e8f076bab Move is_dialog_info_received_from_server to DialogManager. 2024-03-05 12:47:42 +03:00
levlam d66e3657a3 Move cached_channel_participants_ to DialogParticipantManager. 2024-03-04 03:16:20 +03:00
levlam b788136508 Minor improvements. 2024-03-03 02:14:53 +03:00
levlam 1e8e2fcecc Move search_among_dialogs to DialogParticipantManager. 2024-03-03 01:43:42 +03:00
levlam 958f6ddffd Add ContactsManager::get_user_was_online. 2024-03-03 01:39:00 +03:00
levlam 854b054ed6 Fix default parameter value. 2024-03-03 01:35:17 +03:00
levlam 22d9c86b57 Move get_channel_participants to DialogParticipantManager. 2024-03-03 01:22:49 +03:00
levlam 6399c64252 Drop username if it is invalid. 2024-03-03 00:41:09 +03:00
levlam d809329044 Combine resolveUsername queries. 2024-03-03 00:39:11 +03:00
levlam 3d9d6f51f4 Move search_chat_participants to DialogParticipantManager. 2024-03-02 03:02:34 +03:00
levlam 82e109a4d5 Simplify search_private_chat_participants. 2024-03-02 02:09:56 +03:00
levlam 465fdd8505 Move search_dialog_participants to DialogParticipantManager. 2024-03-02 02:02:01 +03:00
levlam 29a8e8062b Don't use std::map and Container to store DC OptionStat. 2024-03-01 14:01:10 +03:00
levlam 0761329c61 Remove explicit limit on HTTP chunk size. 2024-02-29 19:38:57 +03:00
levlam 0a3fa80e40 Remove another unused field. 2024-02-29 19:32:49 +03:00
levlam e82007e708 Remove unused field. 2024-02-29 19:28:15 +03:00
levlam f8342527ca Don't resave DcOptions on launch. 2024-02-28 13:47:17 +03:00
levlam 36e95649cc Make AuthData the last field of Session. 2024-02-27 13:51:39 +03:00
levlam 555aa71f59 Move chat ownership transfer to DialogParticipantManager. 2024-02-26 14:14:54 +03:00
levlam 49674bb431 Move methods for chat participant changes to DialogParticipantManager. 2024-02-25 00:45:19 +03:00
levlam 3d80f1ae6f Move get_dialog_search_text to DialogManager. 2024-02-24 23:47:30 +03:00
levlam 899587e4fa Add and use is_editable_message_content. 2024-02-23 20:19:54 +03:00
levlam fe6201556b Fix GCC 4.9 compilation errors. 2024-02-22 13:08:31 +03:00
levlam 0862f03be2 Don't mark FolderId constructor as constexpr. 2024-02-22 01:12:50 +03:00
levlam ba2f63f8b0 Remove LambdaPromise debug to avoid compiler errors because of #define lambda(...). 2024-02-22 00:57:54 +03:00
levlam 62d87ab433 Link atomic with target_link_libraries. 2024-02-21 18:40:53 +03:00
levlam edb552df68 Support FindAtomics on NetBSD. 2024-02-21 18:31:03 +03:00
levlam 69908ae3c4 Rewrite FindAtomics.cmake. 2024-02-21 18:29:35 +03:00
levlam 3967634933 Try to find atomics only after setting up compiler flags, because the test will never work without C++11. 2024-02-21 16:31:12 +03:00
levlam fe749cfb9b Add DialogManager::set_dialog_location. 2024-02-20 00:43:04 +03:00
levlam 6c5441c8ff Add ATOMICS_LIBRARY_FLAGS. 2024-02-19 16:54:29 +03:00
levlam 1202a4d957 Use https://github.com/libjxl/libjxl/blob/main/cmake/FindAtomics.cmake to find libatomic. 2024-02-19 16:31:00 +03:00
levlam 335b110f9e Add -Wno-psabi option to disable ABI compatibility warnings on ARM. 2024-02-19 15:44:26 +03:00
levlam da979c4631 Move user_online_member_dialogs_ to DialogParticipantManager. 2024-02-19 02:15:05 +03:00
levlam 59b1d7a4f6 Add ContactsManager::update_chat_online_member_count(ChatId). 2024-02-19 01:46:57 +03:00
levlam 32040c22cb Move get_dialog_about to DialogManager. 2024-02-19 01:10:57 +03:00
levlam 5828e46046 Don't subscribe to some state changes by bots. 2024-02-19 00:23:46 +03:00
levlam acef6e61a0 Check close_flag() first. 2024-02-18 20:55:41 +03:00
levlam 516e2e8a07 Remove legacy parameters in Scheduler::flush_mailbox. 2024-02-17 21:42:51 +03:00
levlam b6b5b1b9ed Don't set network type if network statistics is disabled. 2024-02-17 21:39:12 +03:00
Vyacheslav d0ff90bb19 Replace `noinspection` instruction with proper `@SuppressWarnings` annotation
`//noinspection unchecked` suppresses unchecked cast warning only in the IDE. `@SuppressWarning` annotation properly suppresses both IDE and the compiler warnings.
2024-02-16 11:26:46 +03:00
levlam d93a99e335 Update version to 1.8.25. 2024-02-16 01:00:29 +03:00
levlam 5b9c066b34 Add binlog_ null checks. 2024-02-15 19:54:14 +03:00
levlam e12b13bbb0 Keep reference to Td in TdDb::open to ensure that it isn't closed completely in the meanwhile. 2024-02-15 19:45:27 +03:00
levlam 6707463e85 Don't check ChannelFull for bots. 2024-02-15 18:47:20 +03:00
levlam da5ba34850 Minor fixes. 2024-02-15 17:19:19 +03:00
levlam 78f3363486 Add key validness checks before adding to FlatHashSet. 2024-02-15 17:16:08 +03:00