Commit Graph

294 Commits

Author SHA1 Message Date
levlam
dcfa6d1ea6 Improve logging on failed CHECK.
GitOrigin-RevId: 34a9fdad6499503edca51c4c3136731d2c8acb8a
2019-10-03 23:23:38 +03:00
levlam
abb140a714 Minor improvements.
GitOrigin-RevId: a50ba2cc0b47b395d7d7787ad59868d23bf22634
2019-09-08 03:49:16 +03:00
levlam
331a48a898 Fix order of updates applying in secret chats.
GitOrigin-RevId: 3cf1c152c4faf21bc3d1f6cb58fcbce6417623ef
2019-09-04 21:29:27 +03:00
levlam
b9ee9d0cf0 Use send_closure_later in timeout_callback just in case.
GitOrigin-RevId: ee1cee46052af875886477583cfc859503e73bcc
2019-08-29 03:16:49 +03:00
levlam
607f99e40d Fix sending games via bot.
GitOrigin-RevId: 41f71dba07c0d441660650a0f8a01c3f4a94d778
2019-08-28 03:01:15 +03:00
levlam
25d4e27b3d Add persistent real_forward_from_message_id.
GitOrigin-RevId: a1272a710019de980f3b678256fd82f3c7b83242
2019-08-16 02:50:22 +03:00
levlam
9007f106b9 Update layer 98. Support for legacy messages flag.
GitOrigin-RevId: b10c8b60b7fbdfdbf8ab15e65ed32f1daa6c9ad2
2019-08-15 18:16:09 +03:00
levlam
378b1df843 Add td_api::resendMessages.
GitOrigin-RevId: 41c14a76aaf05745592328909e47efd5feca2437
2019-08-11 04:05:00 +03:00
levlam
ee3921f959 Save real_forward_from_dialog_id between restarts.
GitOrigin-RevId: 3282a9f703ec8b9b8d6cccfb088cf5ceaad8202a
2019-08-11 03:20:16 +03:00
levlam
cbd4b2a8a4 Add MessagesManager::generate_new_media_album_id() method.
GitOrigin-RevId: 1a0c71404b09585f66728ea494a8bd920795664c
2019-08-11 02:10:21 +03:00
levlam
611878f098 Add is_bot_start_message flag.
GitOrigin-RevId: 02725fba5857f1e8212b998eaf3c33006382fddb
2019-08-11 01:23:34 +03:00
levlam
d7be30f658 Save hide_via_bot flag.
GitOrigin-RevId: 0bf270274f8bd85fa50b1126e4850cdb35dfc5a7
2019-08-11 01:10:01 +03:00
levlam
c045fce56a Add information about failed to send messages.
GitOrigin-RevId: a4cb3669b5cf478a2e2f5ca1ecf2ea9c5f3ef5cc
2019-08-11 00:14:35 +03:00
levlam
3bca7b1448 Add send_copy to inputMessageForwarded.
GitOrigin-RevId: 7327021564789e8ff436e2f56f243684b7ce8183
2019-08-09 20:28:49 +03:00
levlam
c71dbc28a0 Add send_copy parameter to forwardMessages.
GitOrigin-RevId: 059f992cc8b9c6ae1c6ab3910ffc52b906d12e88
2019-08-09 17:41:26 +03:00
levlam
8059ac0472 Preload chats from database before applying updatePinnedDialogs.
GitOrigin-RevId: 0ebfa4ae3147e16ac7b9b7a812e23792b8a60871
2019-08-06 01:02:09 +03:00
levlam
5ca0a72ddf Add td_api::getMessageLinkInfo.
GitOrigin-RevId: 34213fdada780b9bb8fe6a6db5a0de3be097b55c
2019-08-05 12:12:59 +03:00
levlam
00bf243f37 Fix get_chat_event_action_object.
GitOrigin-RevId: dc9796295dc5eb8d30ed2beb974005a9b8c2c3b3
2019-06-17 19:46:07 +03:00
levlam
11e9923e0a Improve is_acceptable_message.
GitOrigin-RevId: 494c88118bcb8da8e2e8cb956efd28ced3b424b5
2019-06-17 04:25:33 +03:00
levlam
798ac5e3df Consistently use m for Message *.
GitOrigin-RevId: 7cbcba0d72d5d8b0a95046f81ec5bf03f3c6e60e
2019-06-11 02:55:07 +03:00
levlam
8a6dcfe5f4 Better Message objects in chat event log.
GitOrigin-RevId: 4fc6a93e72646cabf07e05207c0aaf2ae7bf6420
2019-06-11 02:30:00 +03:00
levlam
7cd835f4fa Update layer to 97. Support new privacies.
GitOrigin-RevId: d78d9e44557cd1ed77fc83c25986764c4547fb35
2019-05-14 03:18:34 +03:00
levlam
0184df07f3 Probably fix race in reusing notification group.
GitOrigin-RevId: d7359c1d22ad7aecead1844696915c3946c158dc
2019-05-04 01:03:10 +03:00
levlam
9b8a5438be Add td_api::setChatPermissions.
GitOrigin-RevId: ce072b20283e5a1887bd94fea33ad4d0cb4ec5b9
2019-03-20 20:58:13 +03:00
levlam
454d8d3987 Add td_api::chatPermissions support.
GitOrigin-RevId: 38cc232035e54665e140772b13316c31ecc38df6
2019-03-20 15:28:06 +03:00
levlam
ed3e4b7d67 Add basic group description support.
GitOrigin-RevId: 030f1a2c149fd085f90a4153e7c76a6adb14e00c
2019-03-18 05:24:25 +03:00
levlam
b49e312389 Made need_delete_message_files const.
GitOrigin-RevId: b547551f6968766447e448c00c0bd65333316886
2019-04-29 06:21:43 +03:00
levlam
b78db4d902 Trying to keep files, needed for messages in other chats.
GitOrigin-RevId: 454f3143aec958a08ea35edecc808ef99eb795cf
2019-04-28 20:21:44 +03:00
levlam
b7490e626b Add consistency checks for message deletion.
GitOrigin-RevId: 8d37c28f2bbf6c12821437a3670e64a03d841495
2019-04-28 17:07:27 +03:00
levlam
651172ed85 Add is_dark parameter to getChatStatisticsUrl.
GitOrigin-RevId: f2381e8df342efa288fa191df27a79a799f972e2
2019-04-20 20:49:21 +03:00
levlam
74ca960636 Add MessagesManager::need_delete_message_files.
GitOrigin-RevId: a80f3af30813063872adb791820205a66990640a
2019-04-20 16:41:32 +03:00
levlam
aa96b03908 Improve td_api::messageForwardInfo class.
GitOrigin-RevId: 6dd56fce26f9b04d62e205e02708706baddcd155
2019-04-15 05:14:41 +03:00
levlam
b1a1635ce7 Fix adding too new messages.
GitOrigin-RevId: 3874c25b07674608d8a4cef61cd4801ce6a5f115
2019-04-13 16:50:06 +03:00
levlam
af39698707 Add reply_markup to stopPoll.
GitOrigin-RevId: 08cf68d42ecc6c25cd8ec7146fb7e3b1856a7207
2019-04-12 02:10:33 +03:00
levlam
3afcaa67f8 Add more being_added_message_id debug.
GitOrigin-RevId: 248551b7fb837863e363d548c450e547353facef
2019-04-10 15:22:34 +03:00
levlam
48a15fb0d3 Rename getPrivateMessageLink to getMessageLink.
GitOrigin-RevId: ae6ec6b2bf9eb5926395bc2e1298b231e42d26c1
2019-04-08 04:50:26 +03:00
levlam
2082c09757 Add td_api::getPrivateMessageLink.
GitOrigin-RevId: b621bbe7aeed8b3c0e33bfcc3beb51826dc34ea8
2019-04-08 02:42:16 +03:00
levlam
8c4494203c Erase all files in private chats, when corresponding message is deleted.
GitOrigin-RevId: 74304b39138fa36f707dab1540fedcf6d6ad4d0e
2019-04-08 00:28:45 +03:00
levlam
9e2933337f Support MESSAGE_DELETED push notification.
GitOrigin-RevId: f35ce15d7dd2df17486960181d9c54b238abc179
2019-04-07 18:48:09 +03:00
levlam
bcf65c901e Add more being_added_message_id debug.
GitOrigin-RevId: 3040c562be8a826ec5183ea569d7f69aaca6fd40
2019-04-04 23:03:27 +03:00
levlam
b5802e435f Send result to processPushNotification only after the updateNotificationGroup with the notification is sent.
GitOrigin-RevId: d7b814c0ae6ea0555444d9ec54a570e440889b67
2019-04-02 22:24:54 +03:00
levlam
ed4b5ddbc8 Do not show again push message notifications, removed by remove_notification_group.
GitOrigin-RevId: 0037e3e3bbf9879defb1dd3eba7ae3b3fe79703f
2019-04-02 01:05:31 +03:00
levlam
606b427673 Invalidate cache of getGroupsInCommon when count is changed or in 1 hour.
GitOrigin-RevId: e57edb01d3fe3a21e208e8247ca666284a755bcb
2019-04-01 22:38:17 +03:00
levlam
bbd394ec91 Rarely force update in remove_message_notification_id.
GitOrigin-RevId: 89bb0ebdc0a650d7b23c19810445fe745f5780cd
2019-04-01 03:10:05 +03:00
levlam
8a597f77e4 Make max_notification_message_id persistent.
GitOrigin-RevId: 0d19845430bd9fe303d0a7e2a830499139a77b7f
2019-03-31 18:43:43 +03:00
levlam
f08382e36e Remove from binlog outdated temporary push notifications.
GitOrigin-RevId: 7ae29e312bbbe71c406d6c27576ad45537f33ea6
2019-03-31 06:00:40 +03:00
levlam
ae8310907a Support reading history from push notifications.
GitOrigin-RevId: 6f901b7927e272b345d25d3ba4b54e0dec5074cf
2019-03-31 00:30:07 +03:00
levlam
aa9781bd71 Output exact reason when push notification is ignored.
GitOrigin-RevId: 5d1f99af1e767f79d4a66329c9ffb812e7c9e6cb
2019-03-29 15:26:08 +03:00
levlam
8c8fd71029 Add td_api::messageForwardedFromHiddenUser.
GitOrigin-RevId: 1b3c79ad6bbfcee18d8138580ebc15bf12ad2185
2019-03-29 04:43:01 +03:00
levlam
2facb494d3 Add new notification type for push notifications.
GitOrigin-RevId: 47c4527806cab7a43bf4375dc2a2aeeab02fc7c1
2019-03-29 00:08:57 +03:00