Commit Graph

251 Commits

Author SHA1 Message Date
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
f4472452dc Add strong typing for push message content.
GitOrigin-RevId: 4e9d2c9b7b0b3b78d3e891fddc8db0b04aac4bef
2019-04-05 09:09:58 +03:00
levlam
078417d423 Add mtpeer.access_hash parsing in push notifications.
GitOrigin-RevId: bba57f1a73627383a2e363c821475cdc6a3dcaad
2019-04-04 21:50:26 +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
28717876ad Improve get_binlog debug.
GitOrigin-RevId: 8c4480d6f60e792d8bd8a76001d0d9d931c743f6
2019-04-03 12:26:20 +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
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
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
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
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
8b174198d9 Add more debug.
GitOrigin-RevId: bd4e0e8fa0aa53c478e1274a4ffaa04b4859deb6
2019-04-01 20:48:34 +03:00
levlam
71d80f73bf Improve documentation.
GitOrigin-RevId: 103083710620ccbc93ca240acd1a75b780dff612
2019-04-01 20:34:25 +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
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
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
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
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
levlam
521227a2f6 Minor fixes.
GitOrigin-RevId: 8fdf69db2ee8131aad5a40f5755fc7761f97a633
2019-03-29 14:32:50 +03:00
levlam
2facb494d3 Add new notification type for push notifications.
GitOrigin-RevId: 47c4527806cab7a43bf4375dc2a2aeeab02fc7c1
2019-03-29 00:08:57 +03:00
levlam
5d00a38046 Do not delay notification removal updates requested by the user.
GitOrigin-RevId: 7ca24f9da47239c9596e0bec1143b15ae8327bac
2019-03-27 01:07:32 +03:00
levlam
1e1b24dfb3 Ignore duplicate announcements.
GitOrigin-RevId: e09927a5dbae88001a6674e5155d1cffdb57e810
2019-03-26 22:32:07 +03:00
levlam
29e7c2b690 Add need_message_push_notification.
GitOrigin-RevId: 05ea09c326cc779b3eb57e574f6bdb8771bbb239
2019-03-26 18:05:53 +03:00
levlam
ac5a716ffe Add push content basic checks.
GitOrigin-RevId: f6c436f578b5eac8799bb5f84ac2545c490814b3
2019-03-26 16:23:24 +03:00
levlam
89e5b00a95 More push notification parsing.
GitOrigin-RevId: df7da02f718aab0c9158d77f73744808f7597396
2019-03-26 03:57:38 +03:00
levlam
6cebe30382 Find entities in MESSAGE_ANNOUNCEMENT.
GitOrigin-RevId: 3ca4500dea9ba0f3561470416db21bc1cc42616a
2019-03-26 01:24:23 +03:00
levlam
fd7c17ae43 Always send updateActiveNotifications.
GitOrigin-RevId: e5dfab0f5b75132fb85177938807d137284c7dce
2019-03-25 19:41:47 +03:00
levlam
97d3485753 Support reading message history from pushes.
GitOrigin-RevId: 280eff17eec93b688eff6d5d3bad388670820728
2019-03-25 19:01:33 +03:00
levlam
6235ec62b0 Add MESSAGE_ANNOUNCEMENT support.
GitOrigin-RevId: 754a484735c1a7366796181b715d0e79f91a77c1
2019-03-25 17:35:37 +03:00
levlam
5a4baecf1e Add DC_UPDATE push processing.
GitOrigin-RevId: f45e00f221744eb3c4b5d2bc70adad78b7fb6554
2019-03-25 06:51:15 +03:00
levlam
0f8b5f89dc Basic push notifications parsing.
GitOrigin-RevId: 1e7e955551831d1438826d1e5a860c24a6432f23
2019-03-25 06:35:01 +03:00
Arseny Smirnov
c427880154 decrypt_push_payload: bugfix
GitOrigin-RevId: 20b8152e77a881937edd1914521408c8aad506fe
2019-03-25 21:08:48 +13:00
levlam
0db8f14014 Ignore empty push payload.
GitOrigin-RevId: 6054ae0a7d7ae42bc14711efcc77d44fe2018a8d
2019-03-25 01:07:35 +03:00
levlam
c09d5dfbc2 Add logging for a CHECK.
GitOrigin-RevId: dadde241811ab890935ba24c7b3af937393d1185
2019-03-20 05:57:36 +03:00
levlam
664f230c1f Add debug logging.
GitOrigin-RevId: ba81b89a53209dc4a619a1454cec424138ee407e
2019-03-14 22:25:23 +03:00
levlam
063e8872df Fix notification usage for bots.
GitOrigin-RevId: 4645b1c91e5bb1e6a7ef5429efe690c52a8ee257
2019-03-05 06:01:49 +03:00
levlam
6c728d67e0 Do not repair unread count in left chats.
GitOrigin-RevId: ccee30ac61202671b43f402f72e2247008138680
2019-02-20 05:00:54 +03:00
levlam
0d1be06cae Minor fixes.
GitOrigin-RevId: 252036493c4c9e94367ef13246bde96b2f89415a
2019-02-17 16:52:34 +03:00
levlam
fa89033923 Support getOption for "disable_contact_registered_notifications".
GitOrigin-RevId: 5bcfaab65cc7a25fcb8c99ceb8e6fe9c01b714e1
2019-02-14 19:21:54 +03:00
levlam
ab2c23c220 Support server-sde setting for disable_contact_registered_notifications.
GitOrigin-RevId: 963ff137b495bf8784ac434ed76ee165fe918bfc
2019-02-14 18:25:31 +03:00
levlam
534eab1912 Add PacketInfo.h.
GitOrigin-RevId: 76db525e427aaa8afc0f64473743dffaffdd89be
2019-01-31 05:23:40 +03:00
levlam
d4997705e5 Minor fixes.
GitOrigin-RevId: ce3af62ed57a0d205e6270a950fa0a243afea118
2019-01-31 03:20:27 +03:00
Arseny Smirnov
b481ce8465 NotificationManager: decrypt_push
GitOrigin-RevId: 9f623bf065d54f402ca824d40e0515111330b7a7
2019-01-29 19:16:52 +04:00
levlam
429d709ea1 Fix getPushReceiverId for encrypted pushes.
GitOrigin-RevId: f440b656a617a018995ac6e59e4675b6668ca786
2019-01-29 15:14:53 +03:00
levlam
8851b9d066 Implement FileSource.
GitOrigin-RevId: 2cbeab03d2ea1fa56d9f746c5c6c6a41e28d2795
2019-01-14 21:46:04 +03:00
levlam
b6f4249221 Add notification_if fixing.
GitOrigin-RevId: bf8d5cbafb2ea872798e9aded586e7f5c03750c8
2019-01-18 00:00:49 +03:00
levlam
ca4fe0ecb3 Support unencrypted pushes in getPushReceiverId.
GitOrigin-RevId: f8404aec776934ae804f7b76dd8cbbe352ace50b
2019-01-13 22:56:38 +03:00
levlam
4618d0611e Fix CHECK.
GitOrigin-RevId: 376b93e35f13c5637762c03a5a50013c6d4febed
2019-01-13 22:28:25 +03:00
levlam
14f5ce9a29 Delete reused notification groups from database and other fixes.
GitOrigin-RevId: d07e452682df5d781bd0bb992ef572c0c3990540
2019-01-12 03:40:06 +03:00
levlam
3aa95a20ef Notification settings for mentions.
GitOrigin-RevId: 54afec57ab351bcce98b51f06c2dc2769bc25f0f
2019-01-10 20:54:46 +03:00
levlam
ed9e4baae8 Support per chat disable_pinned_message_notification setting.
GitOrigin-RevId: 775384f42d6f31ac983e40836a88b63c0eab1962
2019-01-10 03:47:33 +03:00
levlam
42d59ba6b3 Add additional delay for somw service message notifications.
GitOrigin-RevId: 181e4e4d8eab72b161ae9cc1ab5961f80a0b5d99
2019-01-08 21:24:06 +03:00
levlam
d61f44ac35 Fix comparisons with get_last_updated_group_key.
GitOrigin-RevId: 46d2d729616b3cd19b361f767a35df58229711bd
2019-01-07 20:26:47 +03:00
levlam
cf8fada818 Try to always send updateNotificationGroup about an empty notification group.
GitOrigin-RevId: a6a2ec094ea0c238ba407eda5bcaf855a3c62ba2
2019-01-07 06:12:07 +03:00
levlam
93790e4350 Update documentation.
GitOrigin-RevId: 9d171d943a85c04e5b357d967a1a0484d4e61f68
2019-01-06 05:37:35 +03:00
levlam
9030b8d29e Flush all pending notifications on user going online.
GitOrigin-RevId: 7ccddf36079e30ecf31363f82a55e9663ed97743
2019-01-06 02:50:31 +03:00
levlam
eaebfad034 Update copyright year.
GitOrigin-RevId: 359e2b43322222922c44c430d3814b0a4c778dc6
2019-01-01 01:02:34 +03:00
levlam
d327618102 Fix notifications handling for bots.
GitOrigin-RevId: aa80acf91ef74eb30e19aaadaf33b494f09236aa
2019-12-30 03:39:49 +03:00
levlam
04fbc9ff48 Add pushReceiverId.
GitOrigin-RevId: 6beb6930eb456d94af50ed9455ee15df8ed36e20
2018-12-29 01:48:32 +03:00
levlam
eb382c0d0b Support updateHavePendingNotifications in getCurrentState.
GitOrigin-RevId: b79d24241ce622b86e9e6eba00df489f25b3c91c
2018-12-27 19:53:12 +03:00
levlam
cc1cb263fd Fix updateHavePendingNotifications.
GitOrigin-RevId: a466b693497a2bd55ae35fc9c1c50c84235bd98e
2018-12-26 23:56:03 +03:00
levlam
2e113b1747 Sort notifications in updateNotificationGroup just in case.
GitOrigin-RevId: 58fbb71b96350c16e9f39e17a94377f480b77316
2018-12-26 20:49:53 +03:00
levlam
415b196c8f Add debug to on_pending_notification_update_count_changed.
GitOrigin-RevId: be4ad1d7fb3f8deedae6a52daf60553541ebf685
2018-12-26 20:23:12 +03:00
levlam
4ec320cd0a Better MessageUnsupported support.
GitOrigin-RevId: 7b2b83c83e8b602dfd371fb5c9c598b3a5c31839
2018-12-25 20:47:37 +03:00
levlam
480772c4cf Fix mention notification count if needed.
GitOrigin-RevId: 51fbe5034bb060c09d903b56908aade48a05962d
2018-12-25 18:04:29 +03:00
levlam
1d55e08fe4 Pinned message notification support.
GitOrigin-RevId: f0a435fd3bb55daff2dee438c939b39f8b89f331
2018-12-25 05:45:36 +03:00
levlam
c4903da286 Better handling of notification_id overflow.
GitOrigin-RevId: 3992facb365b43874420d2cdc2b966286ba59cf3
2018-12-24 22:45:42 +03:00
levlam
fe8cf6cd3d Add updateHavePendingNotifications.
GitOrigin-RevId: 762b32f5a5d271f82c3f1c03efff92d8ccb7321d
2018-12-24 19:45:19 +03:00
levlam
bbcad65737 Support subscribing for encrypted push notifications.
GitOrigin-RevId: ff0bc71f137cc0d77df4297ef22e8a885864f27b
2018-12-24 18:33:39 +03:00
levlam
e0b5189f70 Flush all pending notifications on closing.
GitOrigin-RevId: 52bd202389a98e4df9ca7a1e359270aeaa568b0e
2018-12-24 05:53:24 +03:00
levlam
4a0fcb95af Destroy all notificaitons on log out.
GitOrigin-RevId: ebd207054bcce3d1c09c36a77567ada50080dd39
2018-12-24 04:08:52 +03:00
levlam
59672cad10 Add dummy processPushNotification.
GitOrigin-RevId: 71136025e1a4ddce5ace64a34fef766d1b29f7d5
2018-12-24 03:12:59 +03:00
levlam
a05c43ceeb Add NotificationGroupType.
GitOrigin-RevId: 328adc5df3cbe278008c11d5a35da93da88b7d41
2018-12-24 00:34:40 +03:00
levlam
36ab6b3cca Implement separate mention notification group.
GitOrigin-RevId: 036eed8c87e5f60da0c24cd02df11cd48f977019
2018-12-22 23:24:18 +03:00
levlam
cba0f62ba9 Minor fixes.
GitOrigin-RevId: ffac148f714da737dcc1b12e56352995866f93b4
2018-12-19 23:35:13 +03:00
levlam
e586b31a87 Add support for notifications about new calls.
GitOrigin-RevId: fc4f9c1a484832241f2059a1ec58af6e5abcb198
2018-12-18 23:59:35 +03:00
levlam
ef59720681 Fix initialization of last_loaded_notification_group_key_.
GitOrigin-RevId: 2c5b8bc28479446be6ed1f2e4070a046ca2bc1c4
2018-12-17 19:19:05 +03:00
levlam
eb18842279 Disable notification API by default.
GitOrigin-RevId: 2957f2d9e83073aa9d6ba01b95f6afb692b9b4b9
2018-12-12 05:10:47 +03:00
levlam
6445cf645b A lot of various fixes.
GitOrigin-RevId: 64963bfb55e5ffe8b099c1953143158b44a540c6
2018-12-11 23:18:58 +03:00
levlam
811d24f1ba Load notifications from messages with unread mentions in MessagesManager::do_get_message_notifications_from_database.
GitOrigin-RevId: f2bab7c5783797c2612e6c73dabb6a3eac748d62
2018-12-06 01:59:33 +03:00
levlam
c371ac345d Fix sending updateNotification.
GitOrigin-RevId: a719da72bc9ef7869604ba47d790dda35c695fb7
2018-12-05 20:23:10 +03:00
levlam
d772ab6de0 Support updateActiveNotifications in getCurrentState.
GitOrigin-RevId: a0fddcbbd4c54bf338b3e84d0355849e848c7524
2018-12-05 19:11:28 +03:00
levlam
7e3ab0348a Reusing notification group id of discarded secret chats.
GitOrigin-RevId: f106620c150b65660ca6ef05521d6b8dff3875e3
2018-12-04 21:01:41 +03:00
levlam
6d37f492e3 Support notifications about new secret chats.
GitOrigin-RevId: 32d9c4c87228c0a70aa6753f0563b52c28cab97e
2018-12-04 19:40:12 +03:00
levlam
254007eab8 Notifications fixes and improvements.
GitOrigin-RevId: be1ebd6df5f003207ed450d867772286ebcbea27
2018-12-04 02:25:29 +03:00
levlam
25225d5c4b Loading old message notifications from database.
GitOrigin-RevId: dfd63d824dc17efe4dd0e682f0a4adfa5639f273
2018-12-03 18:38:29 +03:00
levlam
2b5be01417 Add dummy load_message_notifications_from_database.
GitOrigin-RevId: 9aad6c7f34c26b43fcc0f2693679237458f955f9
2018-12-03 01:25:34 +03:00
levlam
869a33541f Minor fixes.
GitOrigin-RevId: a19b9f62c992d68f4fc11eaf2d73d56a320661f3
2018-12-03 00:55:35 +03:00
levlam
d1384cf9e4 Load more notification groups if needed on changed max_notification_group_count.
GitOrigin-RevId: 3c4095905bef8d9d3e0faf5ef131d2b5068aadc2
2018-12-03 00:41:07 +03:00
levlam
5b2377319f Load more notification groups if needed after some notifications are deleted.
GitOrigin-RevId: 14d4666462fcd701bddaab1d20e689200ead4ad7
2018-12-03 00:30:05 +03:00
levlam
41a9359109 Fix removal of notification updates, changing total_count.
GitOrigin-RevId: ff7076b01f4ae3be898e89c7258f34d6c67b780c
2018-12-02 23:56:49 +03:00
levlam
d9dcca7743 Send update about new loaded from database group.
GitOrigin-RevId: d80f4746c36946eb9b5042c74b3c4ebdcefa876e
2018-12-02 23:39:47 +03:00
levlam
7bdad0c877 Optimize NotificationManager::get_group.
GitOrigin-RevId: 0b0ae8d0ad274b1c91868943449d09e17aff25f7
2018-12-02 23:28:24 +03:00
levlam
7ce70d8056 Add add_group/delete_group methods.
GitOrigin-RevId: 71539381c1b3600bc18b8c79c6cdb63ffff1cb0f
2018-12-02 23:03:05 +03:00
levlam
013afad0ca Fix races in get_group_force.
GitOrigin-RevId: 30b0902bd5ebaee142f45e06d1d7be6cf6d18762
2018-12-02 22:04:47 +03:00
levlam
c7cb2978fd Send td_api::updateActiveNotifications.
GitOrigin-RevId: 23c45ad26f13220ff41479da4f4878e02dfbaede
2018-11-30 18:11:58 +03:00
levlam
a7e8bd166c Implement remove_message_notifications.
GitOrigin-RevId: bd85166d4fef4d7912300ffee1aa2d6ff2dc0717
2018-11-30 00:02:33 +03:00
levlam
c5eee61308 Remove notifications from database by notification_id.
GitOrigin-RevId: 4e155c60a5e721c9d68a0e41b67b07c79ede3c8e
2018-11-29 02:48:47 +03:00
levlam
113e264a5f Add MessagesManager::get_message_notification_group_keys_from_database.
GitOrigin-RevId: 8ad93b1dc1782b5f0bf94d70ca8deba55a6ea58f
2018-11-29 00:51:25 +03:00
levlam
9e3171ca7a Add MessagesManager::get_message_notifications_from_database.
GitOrigin-RevId: 1eaea2fcc61814c5c87b3c7b2ad90ce749c152c0
2018-11-28 23:19:30 +03:00
levlam
3e89fac991 Support for updating maximum notification group count and size.
GitOrigin-RevId: d7e3c8af8941763c07f8afa7dbc37790b7ebde8f
2018-11-27 04:10:52 +03:00
levlam
bd531081ad Add Notification.h.
GitOrigin-RevId: e102973d5585fdf346ac01b09bd2262f9c11fd2e
2018-11-26 20:05:06 +03:00
levlam
60e685bd7c Improve flush_pending_updates.
GitOrigin-RevId: 54cc8bddd6654e9972eb4346784c93e84f551ed1
2018-11-26 15:58:42 +03:00
levlam
173ba39ad0 Flush groups in reverse order to not exceed max_notification_group_count_.
GitOrigin-RevId: 8f1b03b389f7ef5b2b233591e6465ee13dc4fe5d
2018-11-24 23:36:08 +03:00
levlam
a84f096ae9 Fix behavior of flush_pending_updates.
GitOrigin-RevId: 16fe3975a93062961d28cecd0150a42bfefe7990
2018-11-24 02:55:30 +03:00
levlam
2fd5108aa0 Send silently notification deletions.
GitOrigin-RevId: dcb094417d830cd0a9810836b2f206b17460b125
2018-11-23 15:15:05 +03:00
levlam
3a126069f2 Fix handling of after_get_difference in NotificationManager.
GitOrigin-RevId: ef543b9f3253d4e3da08fe5d7ce0320d2bf9f4f5
2018-11-23 14:42:34 +03:00
levlam
0362a95b7a Remove deleted notifications from pending updates.
GitOrigin-RevId: 8061a9c0ba1814444fa9b906f4cbeb31da197dcb
2018-11-22 20:17:26 +03:00
levlam
949874c953 Better notifications logging.
GitOrigin-RevId: 3580e5ed687e5a2435bda175e2b90ea97cb4fb3a
2018-11-22 15:55:34 +03:00
levlam
989b984455 Delay notification updates during getDifference and fix bugs.
GitOrigin-RevId: 05f5921a195a9b90b50773ce701ea115cc19e5c8
2018-11-22 04:00:28 +03:00
levlam
12e779bc99 Combine notification updates.
GitOrigin-RevId: 2e9d85f46a7e4de568ca8d80a806ebadf62e67ef
2018-11-22 01:28:56 +03:00
levlam
1f40a2dc78 Support update_pts in updateChannelTooLong from getDifference.
GitOrigin-RevId: 4400186159d0dbc62eef70bd0d41f103a1dd2c41
2018-11-21 20:30:29 +03:00
levlam
5ee8b9ee3b Fix total_count.
GitOrigin-RevId: 23ddc4c41de65b22e668886208abe8b84aaa8e24
2018-11-21 19:44:51 +03:00
levlam
a199a17282 Fix send_remove_group_update.
GitOrigin-RevId: c4ce6035da4e5cc72c7be2a2164c322884f0175c
2018-11-21 18:00:14 +03:00
levlam
b666f554f4 Fix flush_pending_new_message_notifications.
GitOrigin-RevId: b3b2e75d95760c2f57e71a4eb66da0674ea56da0
2018-11-21 15:23:43 +03:00
levlam
cb1d429eb2 Support removing notifications by max_message_id.
GitOrigin-RevId: 7841a68dcc05cb70910da0b28b93996c87782f4b
2018-11-20 17:08:44 +03:00
levlam
7ac17547be Remove notifications support.
GitOrigin-RevId: 89669ed19bba2d9556005422d003dec7df8cf252
2018-11-20 16:11:34 +03:00
levlam
fdd7987f0a Fix preloading of just received in getDialogs dialogs.
GitOrigin-RevId: 0ff17a84046f76ede0ec4efda0707477b0ab9397
2018-11-18 00:24:19 +03:00
levlam
c5c3b8c95a Implement updateNotification.
GitOrigin-RevId: 804e527cc2819e8fa6420d8a7ceea4ad6688a641
2018-11-16 18:00:46 +03:00
levlam
c53eaf92a7 Support notification related options.
GitOrigin-RevId: f6e5574fe1466f779995fb3e2914fa48ba844ffe
2018-11-16 01:03:04 +03:00
levlam
b623357695 Disable delay for call and new secret chat notifications.
GitOrigin-RevId: a2c4baa804c84503c7c073dc1b6efae6d0590bc1
2018-11-15 19:09:01 +03:00
levlam
a86a9d2a00 Add support for updateNotificationGroup and delaying of updates.
GitOrigin-RevId: 28974259dcaf97d2ddc7b303c7609bd99b846089
2018-11-15 18:58:33 +03:00
levlam
d82e9b1b2c Add last_notification_date to database.
GitOrigin-RevId: 1ae7310f0ec89a832e8081255c6cbca864c3ecc2
2018-11-12 17:44:42 +03:00
levlam
0ca9b6493d Send to NotificationManager notifications about new/edited messages.
GitOrigin-RevId: 79647054a22e1376c8a69da180ba293300468ed6
2018-11-11 15:58:52 +03:00
levlam
4240b785a0 Strong typing for NotificationId and NotificationGroupId.
GitOrigin-RevId: 2fe55d97bac2fa689ddb6da855ce32f62362699a
2018-11-10 02:08:47 +03:00
levlam
4605f56d3c Add class NotificationType.
GitOrigin-RevId: 16951bb0dd0d13a1f3332449350fed4a4a1ef13e
2018-11-10 01:56:00 +03:00