Commit Graph

111 Commits

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