Commit Graph

442 Commits

Author SHA1 Message Date
levlam
179117cfb8 Delete server messages found after last server message just in case.
GitOrigin-RevId: f149afc10830895fc100db6251befc1afbeb4292
2020-05-19 16:39:44 +03:00
levlam
ea9caab8bc Fix can_delete flags in updateNewChat.
GitOrigin-RevId: 715cca8966860c61b444fbe5ee83aaf884f3af4c
2020-05-16 03:16:11 +03:00
levlam
03c93c5417 Ignore database results when closing.
GitOrigin-RevId: 12355cd62a7d6474e857c811579fb46a802c02f4
2020-05-11 16:21:23 +03:00
levlam
af5eed2abb Log before checks.
GitOrigin-RevId: 16b87eb9a1d763e85007de1253ada424c566ed0e
2020-05-07 03:43:11 +03:00
levlam
554fbe1b8b Fix warning.
GitOrigin-RevId: 1994fbdc73aa41db3f14a063e4b97dfcce4976a1
2020-05-04 21:27:32 +03:00
levlam
4558916bd9 Add get_dialog_private_order.
GitOrigin-RevId: 11938649209ec923bb5ca26e7788943561df6780
2020-05-04 16:33:42 +03:00
levlam
767766ae13 Add MessagesManager::invalidate_message_indexes.
GitOrigin-RevId: e50464c956d38eec8784b72311cb24e654563674
2020-05-01 22:43:05 +03:00
levlam
3afb615b59 Support removing PSA from the shat list.
GitOrigin-RevId: 4c0a07797e587d769caac33c8d7bc7ffddc5b0f8
2020-04-30 14:57:01 +03:00
levlam
2e2a4b4570 Add public_service_announcement_type to forward info.
GitOrigin-RevId: a32fec98c5c61755930f623cdc00ce20f231d898
2020-04-28 17:25:24 +03:00
levlam
4498067221 Update layer to 113. Replace chat.is_sponsored with chat.source.
GitOrigin-RevId: 777a646b9639ed14d2ee1c304c6f0574c1d5ce5e
2020-04-28 16:25:56 +03:00
levlam
3d17513852 Add separate remove_sponsored_dialog.
GitOrigin-RevId: 23b569a314f0dc577e2f65e1a47d51a9434174aa
2020-04-28 12:03:00 +03:00
levlam
9be242f877 Rename get_pinned_dialogs to get_pinned_dialog_ids.
GitOrigin-RevId: 3673c26a7156f98c3078cfd13d6c0a414e495718
2020-04-23 02:35:56 +03:00
levlam
3a622cccaf Remove limit on number of preloaded chats.
GitOrigin-RevId: 515a47d04641e23bc8d5f72bbf01568d83dde96d
2020-04-23 02:33:29 +03:00
levlam
6c9659dec4 Fix deletion of unreachable from the end too new server messages in set_dialog_last_new_message_id.
GitOrigin-RevId: fd43badbfd5745eb3ad26eca5f1873d2ffc2bcb2
2020-04-22 17:52:51 +03:00
levlam
1c605b7e52 Remove debug of being sent messages.
GitOrigin-RevId: cb191e904f2b392562f927c8b2ac28036176ba96
2020-04-22 12:48:52 +03:00
levlam
5da08f8bb1 Remove unsupported include_sponsored_chat_to_unread_count option.
GitOrigin-RevId: dcedd9c37b8e5453590e092a3651456a4c62ad1c
2020-04-14 00:20:04 +03:00
levlam
65c6ac69eb Add get_dialog_public_order overload from DialogList.
GitOrigin-RevId: 9ac90c9f041a756b4adbd1c9e632f97cf43edf66
2020-04-13 04:48:21 +03:00
levlam
6dd455449e Use folder_id in MessagesManager::get_dialog_public_order.
GitOrigin-RevId: 70d6b38ceec67bdb3b0439454a9637f0d6178ee2
2020-04-13 01:39:47 +03:00
levlam
d8f18bd694 Add MessagesManager::add_sponsored_dialog.
GitOrigin-RevId: 8d786b88b5d2e551988aebb164d787bff3f4ea5b
2020-04-02 03:03:17 +03:00
levlam
b89034d78b Fix disable_web_page_preview flag of copied messages.
GitOrigin-RevId: 7b4c01436ab4bb8375307e57dd7b702cea5c289f
2020-03-28 02:35:07 +03:00
levlam
a0a446f987 Correctly send updateChatOrder when sponsored chat changes.
GitOrigin-RevId: 0e2184406b689df860926817d4b4966869a5d05d
2020-03-26 19:04:48 +03:00
levlam
302485d673 Repair dialog action bar with delay to not receive outdated data.
GitOrigin-RevId: 74c3cb3ae95e5204153b91fd220b3e6b62bd87df
2020-03-24 03:47:33 +03:00
levlam
76558f0802 Add can_delete_message method.
GitOrigin-RevId: 87fd876f8155d6e93f1b2f50e03d610626c8ede0
2020-03-20 03:59:09 +03:00
levlam
61d0b113d9 Do not add sponsored chat to ordered_dialogs_.
GitOrigin-RevId: b0b9f90f2018bbe4f32597cd5b4077056ac901e7
2020-03-20 01:15:15 +03:00
levlam
33b87d1b13 Add MessagesManager::is_removed_from_dialog_list.
GitOrigin-RevId: a0d49b0a9c945110b6a7365489795c2fb9b73126
2020-03-19 23:52:09 +03:00
levlam
443924ca11 Simplify MessagesManager::set_dialog_order.
GitOrigin-RevId: a91e590024087f71146637064b5a44a4a2da9960
2020-03-18 23:19:23 +03:00
levlam
cd8c63f073 Simplify update_dialog_pos calls.
GitOrigin-RevId: 60f274d8149a650a04e2a9f289b7aba2992583b3
2020-03-18 19:41:18 +03:00
levlam
a1a7fc7a4d Remove unneeded function parameters.
GitOrigin-RevId: d7e13769e18a6949bbae73da050b664fe09cc1f0
2020-03-17 04:29:24 +03:00
levlam
9b01faa1fd Add logging on check fail.
GitOrigin-RevId: 98322776755f5155b450b27040679d778505298f
2020-03-12 18:37:25 +03:00
levlam
5ae8f3bc43 Do not delete files from being readded message.
GitOrigin-RevId: cccec0ad3b816f400b7fc61d510719ef9f78e90f
2020-03-07 21:00:10 +03:00
levlam
0a5d563a2f Fix MessagesManager::get_next_yet_unsent_scheduled_message_id.
GitOrigin-RevId: 2a3a76652e809d46b5395f8cfd505ae625e30459
2020-02-29 20:36:49 +03:00
levlam
d83d8a4977 Supress updateNewMessage for scheduled messages from database and received before first return of the scheduled messages list.
GitOrigin-RevId: e04e707c23259ce1ea9b651164ddf7df91ccb4a1
2020-02-28 23:01:30 +03:00
levlam
dd6e52418c Better repair of has_scheduled_server_messages.
GitOrigin-RevId: eb1ebac91773ce3a7306a252afe98d2a1a9686fa
2020-02-28 21:40:31 +03:00
levlam
e48199f6c0 Add get_dialog_has_scheduled_messages.
GitOrigin-RevId: 1733e3d3878950e196a2f7a31436f16c5ec4c6d0
2020-02-27 22:39:06 +03:00
levlam
5fef27af1b Add parameter force to get_dialog_scheduled_messages.
GitOrigin-RevId: 1876be0d4de852aa3508810c491e3bb073ae0384
2020-02-27 21:31:19 +03:00
levlam
283a82cfa3 Disable automatic dialog action timeout in chats with bots.
GitOrigin-RevId: 69e0d54d329a2bef15269623d14e0770dffd120e
2020-02-22 19:03:52 +03:00
levlam
e72346cb6f Make repair_channel_server_unread_count persistent.
GitOrigin-RevId: f99be75116f3e5bbfa2224d74723ec4fa5feaa91
2020-02-19 04:14:58 +03:00
levlam
6356d8193c Repair again server unread count until it is successfully repaired.
GitOrigin-RevId: 6ec55caaba86e8374a56aeeb22c6486a5b19f508
2020-02-19 03:09:18 +03:00
levlam
6c34d4628d Add source to set_dialog_pinned_message_notification.
GitOrigin-RevId: db3c87f7a5b9c36db19db8346161d95e72a78bbf
2020-02-18 20:28:16 +03:00
levlam
fa457236e0 Ignore duplicate auth notifications.
GitOrigin-RevId: 103e8ca99f2b2e35455ccd426a415177287bd814
2020-02-13 03:03:50 +03:00
levlam
a7e6deeab5 Add more checks that updateNewChat was sent.
GitOrigin-RevId: deaaef2b986c3d780ad7f06007b2719ff34d7a65
2020-02-13 01:22:25 +03:00
levlam
660acfef22 Allow outdated unacceptable updates to avoid getDifference after trying to apply every such pending update.
GitOrigin-RevId: 61944ec2b4e81fa2ca61bee5887220964e0c9cbc
2020-02-04 04:06:20 +03:00
levlam
8539d43951 Silence warning about wrong message entities for messages from albums.
GitOrigin-RevId: 13a60e258ab6aae8c80d5ea4cd8bb7037f56985c
2020-01-29 02:05:12 +03:00
levlam
9f82e847f3 Do not include MessageContent.h in MessagesManager.h.
GitOrigin-RevId: 7fb80f10bbc2a51a971b60ab470b6f9c8c249672
2020-01-27 16:10:59 +03:00
levlam
c07225c371 Add MessageContentType.cpp/h.
GitOrigin-RevId: 3e9390cea6b566980f7d2d8a7d5efa9b81ec2434
2020-01-27 16:06:00 +03:00
levlam
a89654c3a9 Remove some debug variables.
GitOrigin-RevId: 98b80744574adaa92dea450db049cd166565fc48
2020-01-27 14:28:18 +03:00
levlam
c36d45153c Move resolve_dependencies to Dependencies.cpp.
GitOrigin-RevId: a14d38050af2a7d24f87642e63147642603a7ea5
2020-01-27 03:09:05 +03:00
levlam
129f96da69 Send updateMessageContent when WebPage is changed.
GitOrigin-RevId: 8e20fd788a4f5333f686d96241459774319ac8d7
2020-01-27 02:55:18 +03:00
levlam
67e4871ea0 Add reregister_message_content.
GitOrigin-RevId: 53c250a8e805dba37dc4ee255472935762ee609a
2020-01-25 03:50:23 +03:00
levlam
8350443093 Add limit to getPollVoters.
GitOrigin-RevId: 7f782124e111680b3b726685d6633e79f3d3b60f
2020-01-18 07:01:05 +03:00