Commit Graph

68 Commits

Author SHA1 Message Date
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