Commit Graph

1883 Commits

Author SHA1 Message Date
levlam
88788b2460 Fix forcing updates in remove_notification_group after removal of temporary notifications.
GitOrigin-RevId: 93cc36bc85eb5f2ac5ec9e98a3766408f967544d
2019-04-10 23:54:03 +03:00
levlam
009c78ce5b More cases for temporary notification removal.
GitOrigin-RevId: 0f617980b80f94cc415fbda922c7462ca4675045
2019-04-10 23:22:03 +03:00
levlam
59f36b3b3d Add more debug.
GitOrigin-RevId: f435e1b8531f02092f218189853afc54c47e83b2
2019-04-10 16:37:06 +03:00
levlam
d6e7521aa1 Skip dialogs with unsynchronized group_id.
GitOrigin-RevId: 275014f1c68da71bec5fb63464857babdb90f101
2019-04-10 15:37:06 +03:00
levlam
3afcaa67f8 Add more being_added_message_id debug.
GitOrigin-RevId: 248551b7fb837863e363d548c450e547353facef
2019-04-10 15:22:34 +03:00
levlam
4859485768 Do not erase DeleteMessage log event while closing.
GitOrigin-RevId: 588eeb309964f489186c4614d0dca4c820aedf39
2019-04-10 13:42:46 +03:00
levlam
2ccd37584f Delete downlaoded files when a temporary message push notification is deleted.
GitOrigin-RevId: c0ad85377cf336d98fa5d79697f0389e3c65ec7c
2019-04-10 01:57:15 +03:00
levlam
d42df63ba9 Add Document.get_file_ids method.
GitOrigin-RevId: a885722f10800b5d64ac6f398a4526c874bd2668
2019-04-10 00:55:54 +03:00
levlam
9f5096cd6f Remove copy-paste in remove_temporary_notification_by_message_id.
GitOrigin-RevId: aca8168793e3067b97e90905c4b5e20c01ff3662
2019-04-10 00:37:07 +03:00
levlam
3ac5039912 Delete files from edited message.
GitOrigin-RevId: ac5a68b8f34296df1c918e8b1240eda86a6e4605
2019-04-10 00:13:47 +03:00
levlam
accd15d78c Fix return type documentation in function constructors.
GitOrigin-RevId: f5311028ad942622a92eb72ddc6eda87b40fea35
2019-04-09 23:58:11 +03:00
levlam
f819797ae1 Add title to pushMessageContentChatChangeTitle.
GitOrigin-RevId: e457e2e74dc51db490e156613e7c2d282d455234
2019-04-09 23:43:53 +03:00
levlam
082ba9e020 Add document contents to pushMessageContent.
GitOrigin-RevId: 5baa4853f4e47d9f50f23ca74ebbed0369f17558
2019-04-09 23:39:41 +03:00
levlam
46a0b0036d Add Document.hpp.
GitOrigin-RevId: e26a6aa44453c2a5e2216d91782e94f5bda9686d
2019-04-09 18:52:53 +03:00
levlam
dc79cdc0b1 Add Document class.
GitOrigin-RevId: e1a5a8235f341cf0955ee37086a99a17e7b123de
2019-04-09 18:38:57 +03:00
levlam
78704b6918 Immediately send updateNotification for pushes.
GitOrigin-RevId: 7f9ed64f17219e772256b0790586e691bae49d0a
2019-04-09 17:43:56 +03:00
levlam
47d8d3223a Add photo and caption to pushMessageContentPhoto.
GitOrigin-RevId: 66a0cd47bf2dc7e8cba2f0d6d3a68151df2be20c
2019-04-09 17:33:27 +03:00
levlam
b448160ad6 Send updatePoll for being closed polls.
GitOrigin-RevId: 3e2302d838e5d5dc03b0f6d5b164081b64b1c0eb
2019-04-09 13:25:29 +03:00
levlam
2ca710a26f Better error message, when closing a closed poll.
GitOrigin-RevId: f43d49df5a2435c1cb1e5715feeb10d3e08c20a4
2019-04-09 11:03:14 +03:00
levlam
bbc3bd7441 Do not allow polls with 1 option.
GitOrigin-RevId: d959269ff926ce6e495336f36d1edea1a78abb75
2019-04-09 03:39:05 +03:00
levlam
3466565792 Immediately return success from processPushNotifications in some cases.
GitOrigin-RevId: 83fe0f98632721683cae5ab2be0ca5e082d93b6c
2019-04-09 02:38:53 +03:00
levlam
86471c5ff9 Send result of processPushNotification with a small delay.
GitOrigin-RevId: f2530099606505f4e3c4b3bbcde82b0bd762661c
2019-04-09 02:07:35 +03:00
levlam
fe9f1e52d2 Add more DcId checks.
GitOrigin-RevId: ca4bfdc046e78ef7e216c8a5bda8e5ddcd88cfec
2019-04-09 01:37:20 +03:00
levlam
37359e9898 Add more attach parsing.
GitOrigin-RevId: a6207921267eb47dbb81b950a789b88ed068f880
2019-04-09 01:24:15 +03:00
levlam
348e2fc7dd Add notification attach parsing.
GitOrigin-RevId: 424aac3af3ed44782888adcda7641d31ff93b4b2
2019-04-08 22:46:40 +03:00
levlam
edfb005cc1 tg_cli: add spcaption.
GitOrigin-RevId: 01829fb2a9cd7e9729f0d9b791321600a40e1f0c
2019-04-08 19:53:26 +03:00
levlam
fb4475e83d Move file_reference and notifications logging from WARNING to INFO.
GitOrigin-RevId: e03ee30dac7fbec2930a3cd1c625b43136d3739f
2019-04-08 19:15:39 +03:00
levlam
f0cd9805c8 Support new album loc_keys.
GitOrigin-RevId: 8f4100a3070e0a7adc824e6ec0d6f8b257f8218f
2019-04-08 18:30:22 +03:00
levlam
a7d50c1ae8 Cancel more requests when closing.
GitOrigin-RevId: 5d7f37cf8abf45cfe37f3ab589f85a5e96417ffb
2019-04-08 17:57:41 +03:00
levlam
48a15fb0d3 Rename getPrivateMessageLink to getMessageLink.
GitOrigin-RevId: ae6ec6b2bf9eb5926395bc2e1298b231e42d26c1
2019-04-08 04:50:26 +03:00
levlam
de87ddb108 Fix deletion of temporary message pusn notification by MESSAGE_DELETED.
GitOrigin-RevId: aaa259568e10ddfa58f8f0499cca0ebc49eae5d3
2019-04-08 03:04:05 +03:00
levlam
2082c09757 Add td_api::getPrivateMessageLink.
GitOrigin-RevId: b621bbe7aeed8b3c0e33bfcc3beb51826dc34ea8
2019-04-08 02:42:16 +03:00
levlam
923acf298e Fail some sticker queries when closing.
GitOrigin-RevId: 30320a183002e6371f65c80cd21dc2aba318ca17
2019-04-08 01:14:09 +03:00
levlam
f8a807ba4f Add td_db() debug.
GitOrigin-RevId: 7eaa8b1a09a97ea935b46144cf5f6ef48f04712b
2019-04-08 01:09:54 +03:00
levlam
99a27126e5 Do not send GetDialogQuery while closing.
GitOrigin-RevId: c6517f13a881dc4a6bb31072ec0320e17823ef0e
2019-04-08 01:06:58 +03:00
levlam
2ca1bf12f9 Fix possible removal of log events when closing
GitOrigin-RevId: 0450de7025e471387055362d16917c5699e4b987
2019-04-08 00:50:13 +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
e1a9630bd1 Support editing of notifications through pushes.
GitOrigin-RevId: 432555db5037bc3f1d5b4de21b0dac9dae24c923
2019-04-07 23:57:54 +03:00
levlam
9e2933337f Support MESSAGE_DELETED push notification.
GitOrigin-RevId: f35ce15d7dd2df17486960181d9c54b238abc179
2019-04-07 18:48:09 +03:00
levlam
bbde601863 Add more debug.
GitOrigin-RevId: 1995ef700904e89e56ed6bbc68abc2dc4302775d
2019-04-06 01:54:31 +03:00
levlam
83dfa3ba0b Do not send getHistory requests when closing.
GitOrigin-RevId: ea9e71fda1367ba639521e236a5dd57d0fbe2392
2019-04-06 01:04:30 +03:00
levlam
f4472452dc Add strong typing for push message content.
GitOrigin-RevId: 4e9d2c9b7b0b3b78d3e891fddc8db0b04aac4bef
2019-04-05 09:09:58 +03:00
levlam
bcf65c901e Add more being_added_message_id debug.
GitOrigin-RevId: 3040c562be8a826ec5183ea569d7f69aaca6fd40
2019-04-04 23:03:27 +03:00
levlam
078417d423 Add mtpeer.access_hash parsing in push notifications.
GitOrigin-RevId: bba57f1a73627383a2e363c821475cdc6a3dcaad
2019-04-04 21:50:26 +03:00
levlam
0afbff7256 Do not try to get messages from server when closing.
GitOrigin-RevId: ff7a7f04b6c4a87205022bbd21b753a10a86d3b3
2019-04-04 16:51:01 +03:00
levlam
c2126744a2 Remove unused variable.
GitOrigin-RevId: 7afef76f151fa622ae43679ca886f0abfa452751
2019-04-03 23:03:07 +03:00
levlam
768895e80d Fix get_push_receiver_id for Windos pushes.
GitOrigin-RevId: 43d098a418216b5dbb82da7806d3bb947220fd50
2019-04-03 22:41:51 +03:00
levlam
e10b174c16 Support Windows pushes parsing.
GitOrigin-RevId: 36455a2ef92d926e7c1e0200d46526eadcfa3a0e
2019-04-03 22:29:18 +03:00
levlam
1f85174e5b Return input_media debug.
GitOrigin-RevId: ef82844e9be32d34caf9cb725cda0f37c44be855
2019-04-03 20:57:53 +03:00
levlam
178e0b554c Skip notification groups without chat info.
GitOrigin-RevId: b6927b3d422b1408e365308c0896119fcf75d483
2019-04-03 16:45:57 +03:00
levlam
277d3a788f Protect from accidental message_id removal.
GitOrigin-RevId: 622745e79f396f0998a27a6a8b1a434c2a25c138
2019-04-03 15:32:05 +03:00
levlam
28717876ad Improve get_binlog debug.
GitOrigin-RevId: 8c4480d6f60e792d8bd8a76001d0d9d931c743f6
2019-04-03 12:26:20 +03:00
levlam
ad9ecdc3f0 Fix crash on failed to send photo in media group.
GitOrigin-RevId: fb390f0f5f4d963529283bc5b6418bfdf477a4f0
2019-04-03 03:12:19 +03:00
levlam
47bbdabe5a Fix handling of duplicate notification identifiers.
GitOrigin-RevId: 54e8cee7d284fdb4579f4f92d50c6db902825e04
2019-04-03 02:47:35 +03:00
levlam
3a2af5d4b1 Add TdDb::get_binlog debug.
GitOrigin-RevId: c1a155df722fbc8901f02875eabb00e857179914
2019-04-03 02:22:34 +03:00
levlam
76b4de2413 Silent push notifications support.
GitOrigin-RevId: 7e71c83c2a1a2d29b4f1279b020ee71f20aa63c4
2019-04-03 02:08:39 +03:00
levlam
39b83ebe07 Add source to NotificationManager::add_notification.
GitOrigin-RevId: e832fbe7ba970f18524e9937add84e341d528b10
2019-04-03 02:02:18 +03:00
levlam
0171ae53ae Fix call to set_dialog_is_empty.
GitOrigin-RevId: 88537853efdec536e052e580487f10481a7aa8de
2019-04-03 01:53:28 +03:00
levlam
62f335d3ae Fix calls to load_message_notifications_from_database.
GitOrigin-RevId: c65aa3ce8a14e53d3253fcd44d8a989cb77a1899
2019-04-03 01:50:40 +03:00
levlam
1e0ddfa093 Remove is_inserted debug.
GitOrigin-RevId: 64b91824e904fb3e9131ecd363eb21a493ad6b46
2019-04-03 01:41:08 +03:00
levlam
d44daf8d63 Fix adding a notification twice.
GitOrigin-RevId: bd6ec24e15ad70f90608dd14976aea29bc2018d3
2019-04-02 23:20:27 +03:00
levlam
5ac3c9c429 Improve getChats documentation.
GitOrigin-RevId: 48b804f4e7f3f04376f5f5083b7156c92094fde2
2019-04-02 22:32:56 +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
1d4b1570ad Allow to send games to broadcast channels (still doesn't allowed by server).
GitOrigin-RevId: cf9850b27ef5860b38f97934aebf655b5ed013f6
2019-04-02 01:47:02 +03:00
levlam
693157eeb4 Separate inline queries cache for broadcast channels.
GitOrigin-RevId: 4235355201f50ee22312050a3c528879dde6d759
2019-04-02 01:40:32 +03:00
levlam
b847e17597 Add crash debug.
GitOrigin-RevId: b19258b9e707e614216fc816bf91a0032b07bddd
2019-04-02 01:13:04 +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
ca67a2754c Clean unread count and some other fields in an empty chat.
GitOrigin-RevId: 65355c3af58342dbdacfe396301769937778bd6b
2019-04-01 23:56:55 +03:00
levlam
b266d6c8a2 Update processPushNotification documentation.
GitOrigin-RevId: 1d320455a02f5c0050d36adb72a19622eee87f6d
2019-04-01 23:01:29 +03:00
levlam
b548f222dc Return error 406 if notification is not supported from processPushNotification.
GitOrigin-RevId: 6913bdc376e4af14848ed0f403f6807ae7a84b8f
2019-04-01 22:51:39 +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
8b174198d9 Add more debug.
GitOrigin-RevId: bd4e0e8fa0aa53c478e1274a4ffaa04b4859deb6
2019-04-01 20:48:34 +03:00
levlam
e3ca852a92 Do not send uqeries in QueryCombiner when closing.
GitOrigin-RevId: 1bf74cad094cdedb28c7d198f962ecc352a2c574
2019-04-01 20:41:27 +03:00
levlam
71d80f73bf Improve documentation.
GitOrigin-RevId: 103083710620ccbc93ca240acd1a75b780dff612
2019-04-01 20:34:25 +03:00
levlam
bbd394ec91 Rarely force update in remove_message_notification_id.
GitOrigin-RevId: 89bb0ebdc0a650d7b23c19810445fe745f5780cd
2019-04-01 03:10:05 +03:00
levlam
96e7bba14a Do not keep more tha 1 pinned message notification.
GitOrigin-RevId: 8b0b8c56583dca6f84527ec957db08cc84cdc1e1
2019-04-01 03:02:19 +03:00
levlam
470e5cec90 Decrease queries delay in MessageDb, DialogDb and SQLite key-value.
GitOrigin-RevId: 5859c8ed99af5ac20b1485187c35faa85eff4201
2019-03-31 22:46:32 +03:00
levlam
586a812016 Return error to client on failed to parse push notification.
GitOrigin-RevId: 84ad387ba6defa0cb1c7b468aba134954b867e39
2019-03-31 22:35:51 +03:00
levlam
295878b217 Check connection aliveness after push is received.
GitOrigin-RevId: 526a06642617ada66ef6d84f5858cb332f1c1406
2019-03-31 22:29:34 +03:00
levlam
2f8aa42776 Fix parsing of PINNED_ pushes.
GitOrigin-RevId: 52a3f88c905ea744bf305d758799b6d4c29163ee
2019-03-31 21:33:47 +03:00
levlam
cb8f8c51e2 Fix sending notification updates before updateActiveNotifications.
GitOrigin-RevId: 38eb16545f4d99eb83eb39beef6a8904ae2002c6
2019-03-31 20:15:49 +03:00
levlam
fd5c47a831 Fix remove_temporary_notifications.
GitOrigin-RevId: 4ab864b9da37b513d2e1e811653bdb7a1afab999
2019-03-31 19:55:43 +03:00
levlam
8a597f77e4 Make max_notification_message_id persistent.
GitOrigin-RevId: 0d19845430bd9fe303d0a7e2a830499139a77b7f
2019-03-31 18:43:43 +03:00
levlam
5d180c55de Do not repeat notification with sound for already received through push notifications messages.
GitOrigin-RevId: 7527122f71b1b24683d283e3da894571c9b78356
2019-03-31 18:33:01 +03:00
levlam
b904b405fe Do not repeat push notification with sound after restart.
GitOrigin-RevId: 3bebfbe3cec86d49a4e57311cbe804345e46a0f0
2019-03-31 18:29:19 +03:00
levlam
1923170840 Fix pdateActiveNotifications.
GitOrigin-RevId: 94fa89e8b7313ad7716779726ab169bbb51474b1
2019-03-31 18:27:35 +03:00
levlam
e5da6a5017 Improve updateHavePendingNotifications.
GitOrigin-RevId: b4f3701ca9e75a05367d945f1693f742d7f27eb6
2019-03-31 17:13:29 +03:00
levlam
44fcdf69e4 Remove temporary notifications after getDifference.
GitOrigin-RevId: 528ea2d98d9cf57254a5c492dc185d00c4f4bc84
2019-03-31 06:38:47 +03:00
levlam
c93cfe5df6 Allow to reply yet unreceived server messages.
GitOrigin-RevId: 0796acda7ab15c8f2a37404daabf42b6d634768a
2019-03-31 06:11:35 +03:00
levlam
f08382e36e Remove from binlog outdated temporary push notifications.
GitOrigin-RevId: 7ae29e312bbbe71c406d6c27576ad45537f33ea6
2019-03-31 06:00:40 +03:00
levlam
28351e8529 MAke push notifications persistent.
GitOrigin-RevId: 3cb231596e1f75a8157db48880e48f542c0b811d
2019-03-31 04:30:25 +03:00
levlam
8157f7e9ae Simplify process_message_push_notification.
GitOrigin-RevId: fe47e80dfaa1af38969bdf0c1532a083a7fd3d60
2019-03-31 01:02:13 +03:00
levlam
b8ca259418 Force removal of group first wnen update is forced.
GitOrigin-RevId: 3f4f9027d705c23bf3494acfa0941eba5cfc2676
2019-03-31 00:45:25 +03:00
levlam
bad2ee02a0 Add NotificationManager::force_flush_pending_updates,
GitOrigin-RevId: 4908bb2300613d8231b35093fbcfe87fe4d4b434
2019-03-31 00:38:18 +03:00
levlam
ae8310907a Support reading history from push notifications.
GitOrigin-RevId: 6f901b7927e272b345d25d3ba4b54e0dec5074cf
2019-03-31 00:30:07 +03:00
levlam
17dfff9297 Remove temporary notifications on notification group removal.
GitOrigin-RevId: ac06a2c1181508e833cfb129892cb45b1b70e6eb
2019-03-30 23:52:54 +03:00
levlam
e28d0eb3c0 Add td_api::notificationTypeNewPushMessage.
GitOrigin-RevId: 4708329ff77a23c82d7786d83f4e4c936c3dbee2
2019-03-30 23:49:14 +03:00
levlam
508889fadf Store sender_user_id in message push notification.
GitOrigin-RevId: e6dbf304266c63a92e5949a1ee48444f8c0e958f
2019-03-30 17:59:35 +03:00
levlam
29d745c87e Push notifications handling fixes.
GitOrigin-RevId: da34e59128b23a7cedcfc8c7a7f64a4c9b5066fe
2019-03-29 17:04:42 +03:00
levlam
aa9781bd71 Output exact reason when push notification is ignored.
GitOrigin-RevId: 5d1f99af1e767f79d4a66329c9ffb812e7c9e6cb
2019-03-29 15:26:08 +03:00