Commit Graph

38 Commits

Author SHA1 Message Date
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
e586b31a87 Add support for notifications about new calls.
GitOrigin-RevId: fc4f9c1a484832241f2059a1ec58af6e5abcb198
2018-12-18 23:59:35 +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
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
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
5b2377319f Load more notification groups if needed after some notifications are deleted.
GitOrigin-RevId: 14d4666462fcd701bddaab1d20e689200ead4ad7
2018-12-03 00:30:05 +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
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
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
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
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
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
levlam
5f23a99fca Add dummy NotificationManager.
GitOrigin-RevId: f8915918dfa91562b7acad45133c1c493affc896
2018-11-09 17:14:02 +03:00