Commit Graph

200 Commits

Author SHA1 Message Date
levlam
fa04e668f6 Better support for GEO_LIVE_PENDING push notifications.
GitOrigin-RevId: 7fb392ec0e6471a09a3b325db48531700204c039
2019-12-14 01:57:17 +03:00
levlam
f0d3854462 Add simple group_key.last_notification_date sanity checks.
GitOrigin-RevId: d24887212101c976a2f25c203dbfff81caf12a74
2019-12-13 02:05:47 +03:00
levlam
8c495d99e6 Use TRY_RESULT_ASSIGN.
GitOrigin-RevId: 99b60b9044fab9357a3440aed7da55f146677e6b
2019-12-08 09:57:33 +03:00
levlam
3b1ab2ff8f Add scheduled-safe MessageId comparison operators.
GitOrigin-RevId: edc6481519510a425bcf3f08bb46eaac1c923ee4
2019-11-29 19:11:06 +03:00
levlam
099e767b6b Add ServerMessageId.h.
GitOrigin-RevId: f71d1f41f84c2263890875271f47f938e792aa55
2019-11-26 19:33:18 +03:00
levlam
7cdbd20ae0 Support new push notification keys.
GitOrigin-RevId: db45aeeab88d678b0ebef2b08368212a6fe7b89d
2019-11-21 23:48:52 +03:00
levlam
c5cc0e90f6 Update layer ro 106.
GitOrigin-RevId: 41e5db3d090559a7403accc8057c9957e6ead02d
2019-11-21 22:57:20 +03:00
levlam
918f6a0cfd Use td::contains and td::remove instead of std::find if possible.
GitOrigin-RevId: faa0863eb49ee8ce4c2138dfec022620f71d2f6a
2019-10-22 02:12:58 +03:00
levlam
ac60ef4c5a Do not allow recursive call to set_dialog_pinned_message_notification.
GitOrigin-RevId: 91db05f21ec2feb322efa9c9be5aa76b9f49ad3f
2019-10-23 21:53:26 +03:00
levlam
e37f7d1537 Add td::remove_if.
GitOrigin-RevId: d94733cbf251e8fc182c106f4cbf0cc84c0675a5
2019-10-20 01:51:17 +03:00
levlam
ee87414bab Fix misprints.
GitOrigin-RevId: e21e784c076005538ee889a61b12b8876567da13
2019-10-19 21:20:16 +03:00
levlam
0e2898b81e Add td_api::notification.is_silent.
GitOrigin-RevId: bab4a0c401913177b9fc794ee510c912be3f2727
2019-10-03 21:58:50 +03:00
levlam
55ea23b2fc Remove static functions from NotificationManager.cpp.
GitOrigin-RevId: 326ed290ac673b64ebaa390431c646be57bbd238
2019-09-08 02:27:12 +03:00
levlam
5b05a6245c Better handling of secret chat push notifiations.
GitOrigin-RevId: 05bf44191339d98d7124ef41bd5bec3fc3ade9f1
2019-09-04 19:17:56 +03:00
levlam
e7767cf106 Fix formatting.
GitOrigin-RevId: e78b1517297af214b7738350411d3e1e520a2066
2019-08-06 20:11:31 +03:00
levlam
666e668163 Add support for is_scam mark for users and channels.
GitOrigin-RevId: f34b2ed15d3cb01f3a3da51673e8aa0ac98ad874
2019-06-18 16:41:53 +03:00
levlam
e3b9772cd2 Do not allow to edit temporary notification by non-temporary.
GitOrigin-RevId: d4a6f577d70f80826f22169c3d6a07cf476bd0bf
2019-06-17 18:59:35 +03:00
levlam
2ec992b106 Check notification message_id before allowing to edit it.
GitOrigin-RevId: f6713e719daa2058996ffe7ee4aad2299a03236d
2019-06-17 18:54:35 +03:00
levlam
8117f0fb39 Support min_access_hash.
GitOrigin-RevId: b2de0f02f75683a08961cdb1c0ceb719574a9e67
2019-06-17 01:35:12 +03:00
levlam
e39b4fae83 Fix SESSION_REVOKE push handling.
GitOrigin-RevId: 364cddfa123bb8c9cfe300c58ea37ef3d5570c36
2019-05-09 22:52:37 +03:00
levlam
bcb7a9f6d2 Fix total_count in SecretChat notification group after notification removal.
GitOrigin-RevId: 7bedbb220b3e5e59e3c6c293db9bed6819c01128
2019-05-03 23:36:01 +03:00
levlam
d19de66284 Check call notification group ids before reusing them after restart.
GitOrigin-RevId: b26116afbefa697f4493dd316fe3bd7b14ee2f9e
2019-06-06 20:12:10 +03:00
levlam
06f1aa9e26 Fix CHECK.
GitOrigin-RevId: 03f3289ee5978403b6d2c9a72f3180730a152958
2019-06-02 01:18:05 +03:00
levlam
44aede31ca Add more logging.
GitOrigin-RevId: 43b44b116e835cbaeb56119254b0de73aa57bdcd
2019-05-30 01:35:19 +03:00
levlam
719377a7de Fix warnings.
GitOrigin-RevId: 3d6129e1f99996938316c53b297ced56df14aa23
2019-04-26 05:49:48 +03:00
levlam
c62ff7039e Minor fixes.
GitOrigin-RevId: f0ba3402adf4a26d8220d9b5545e9ea18f094e65
2019-04-22 03:46:51 +03:00
levlam
7dddc07dfe Add drop_notification_ids option.
GitOrigin-RevId: f246e68de2b01d0152b71e774da58de44740355d
2019-04-21 00:07:02 +03:00
levlam
adaf85ae70 Support SESSION_REVOKE push notification.
GitOrigin-RevId: 58ffab4a39bb36d973a064e8768d7a5e5dd56af9
2019-04-20 22:39:41 +03:00
levlam
896e44ac94 Add source to remove_notification.
GitOrigin-RevId: 217f967c61005275e5582ae0705b3b24fc8a73c2
2019-04-19 01:52:15 +03:00
levlam
cc499af5c7 Do not log push notification attach.
GitOrigin-RevId: d9e62b7ad94752c0e3a97f59acfc5cb470fc0dff
2019-04-15 18:20:45 +03:00
levlam
1e9d2f0247 Fix pushMessageContent captions.
GitOrigin-RevId: cb52936eaaa0208349d442c49e833eb833c0c96f
2019-04-15 16:33:57 +03:00
levlam
67c9d568ae Fix detecting of silent push notifications.
GitOrigin-RevId: 3fb75cf469bc0a069c0d34c82b02d2c629e64724
2019-04-13 23:09:42 +03:00
levlam
6376ed09d0 Silence unneeded notification log event errors.
GitOrigin-RevId: 5f2d00d2575162944f80f2691d5b896950e93d35
2019-04-11 17:13:42 +03:00
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
2ccd37584f Delete downlaoded files when a temporary message push notification is deleted.
GitOrigin-RevId: c0ad85377cf336d98fa5d79697f0389e3c65ec7c
2019-04-10 01:57:15 +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
082ba9e020 Add document contents to pushMessageContent.
GitOrigin-RevId: 5baa4853f4e47d9f50f23ca74ebbed0369f17558
2019-04-09 23:39:41 +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
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
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
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
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
e1a9630bd1 Support editing of notifications through pushes.
GitOrigin-RevId: 432555db5037bc3f1d5b4de21b0dac9dae24c923
2019-04-07 23:57:54 +03:00