Commit Graph

1932 Commits

Author SHA1 Message Date
levlam
d2e2aa7f7a Force update when fixing pinned message notification.
GitOrigin-RevId: ab5b92020b0c5698259ff8d660a54708b383a1ee
2019-04-19 01:15:09 +03:00
levlam
60c1fc935c Fix web page database statistics.
GitOrigin-RevId: e0ab106d981d871a9d2f14563cea613253435563
2019-04-19 01:11:58 +03:00
levlam
849a4fbdb1 Fix fixing of is_dialog_pinned_message_notifications_disabled.
GitOrigin-RevId: 28993e5eead5c487b0e3c1efe1d69ba936561e1a
2019-04-19 01:03:33 +03:00
levlam
112c7c0168 Better repairing of unreceived sent messages.
GitOrigin-RevId: 219f58990fab3b076fcafef3d063693147892384
2019-04-18 18:33:36 +03:00
levlam
2ee75b769c Add additional check for is_bot before sending terms of service request.
GitOrigin-RevId: 975ece32f0a7f31cd1b0021b414cc7cf17b907bf
2019-04-18 18:18:20 +03:00
levlam
6b214aa72e Do not recalc unread counts for bots.
GitOrigin-RevId: 953fe4ea9c6991e1a90f8dcd7adbeb5fc69b72d4
2019-04-18 18:12:18 +03:00
levlam
e9bb986d9c Remove unneded UpdatesManager::get_state.
GitOrigin-RevId: d95a262233bd5959950eab8159a589a689d8a4b5
2019-04-18 17:57:57 +03:00
levlam
044a3a6f14 Improve error log messages.
GitOrigin-RevId: f43f89acaeb84898b076a3929eed08e927c1c392
2019-04-18 17:47:37 +03:00
levlam
c37d0d98dd Silence expected warning.
GitOrigin-RevId: a81ef99ffebdf41067318920110fbd7fb554da92
2019-04-18 17:04:05 +03:00
levlam
6d298adf73 Protect from calling getChannelDifference continuously.
GitOrigin-RevId: cee3ac9a146d7f0ad65913cba437d64dc2f71bc9
2019-04-18 16:45:21 +03:00
levlam
0516dfaa32 Better error log message.
GitOrigin-RevId: 5076d85dd60c8d08d7537895a6d925c90f5f0aea
2019-04-18 16:37:16 +03:00
levlam
dde79b4190 Silence warning for getChannelDifference in just created channel.
GitOrigin-RevId: d795b5e68473279733f564b4b1c85e6a3b335aaf
2019-04-18 16:31:46 +03:00
levlam
e6065438de Send UpdateNotification for pinned message notification whenever pinned message changes.
GitOrigin-RevId: 5362e072cd6fef5579db4077a0d875178dc12e76
2019-04-18 04:18:57 +03:00
levlam
e01d26eb2b Rename Google Cloud Messageing to Firebase Cloud Messaging.
GitOrigin-RevId: 56219b2225b6807f517afbc33f866f9b0c7e91c7
2019-04-18 02:23:02 +03:00
levlam
9715ae4462 Add version to td_api::webPageInstantView.
GitOrigin-RevId: 81882e97facef38940c6c934e18d82e25dc39e12
2019-04-17 22:32:14 +03:00
levlam
fd167da0f1 Minor scheme improvements.
GitOrigin-RevId: 5bc4e9c702f440b07aadfe4f1133ec5abfcc29e5
2019-04-17 22:25:26 +03:00
levlam
d37409bc0c Improve documentation.
GitOrigin-RevId: e35aa6991bc531786a28195697e21331a18cb96c
2019-04-17 04:13:44 +03:00
levlam
dc673f0eae Fix is_outgoing flag in Saved Messages.
GitOrigin-RevId: 1439610dc7be18348f186c033c7a41a5386a2e5b
2019-04-17 04:12:30 +03:00
levlam
11f233a11e Fix can_be_deleted_* flags for closed secret chats.
GitOrigin-RevId: f05b9228ccc4bc991057ec3e3d3af700c5518e60
2019-04-17 02:28:16 +03:00
Arseny Smirnov
c1d94fc821 experimental td_api::getDatabaseStatistics
GitOrigin-RevId: ed4e39caef210a14e1c72f0660690ffd7e974aff
2019-04-17 12:17:51 +03:00
levlam
c1eadfdc14 Fix log message.
GitOrigin-RevId: 8c255ed561ac1868eb1224238c6f40d9b7b69dac
2019-04-16 17:02:32 +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
79cc50ed41 Add chat.an_be_deleted_*.
GitOrigin-RevId: af1c5ff5c3cec46c25973dc644df777544906af5
2019-04-15 05:48:42 +03:00
levlam
aa96b03908 Improve td_api::messageForwardInfo class.
GitOrigin-RevId: 6dd56fce26f9b04d62e205e02708706baddcd155
2019-04-15 05:14:41 +03:00
levlam
0cb60722c2 Do not show forwarded messages with hidden sender as outgoing in Saved Messages.
GitOrigin-RevId: 4ecf43d8d9edcfc0ade7f122c835002725f21875
2019-04-15 03:52:36 +03:00
levlam
401ef61b0c Add forwarded_from_* to messageForwardedFromHiddenUser.
GitOrigin-RevId: ad13e8f6f45a243196ebf66c282fbd56927ef1d9
2019-04-15 00:15:28 +03:00
levlam
a662c5b102 Fix deletion of files from edited messages.
GitOrigin-RevId: b19cf5878e8fd4857d4e7e4eb8913212f91043c2
2019-04-14 23:05:48 +03:00
levlam
08235274ed Add more sanity checks for pinned message notification.
GitOrigin-RevId: adb6f444912dcad336df9fec6dab669e362c7ba2
2019-04-14 21:39:33 +03:00
levlam
bf95e2f051 Fix removing pinned message notification.
GitOrigin-RevId: d01a6d955944f5990c59fc5a1e565f7d9956bcb3
2019-04-14 04:11:00 +03:00
levlam
03945ea7b9 Do not log error about early received pinned message.
GitOrigin-RevId: f840bd03c6e90c6bc1796c5160ce695b35444543
2019-04-14 00:39:04 +03:00
levlam
67c9d568ae Fix detecting of silent push notifications.
GitOrigin-RevId: 3fb75cf469bc0a069c0d34c82b02d2c629e64724
2019-04-13 23:09:42 +03:00
levlam
2585f5efae Allow to revoke call messages in private chats.
GitOrigin-RevId: 3ede20dcb6f01a9cb69977b7964a7093d2fb59a7
2019-04-13 22:47:51 +03:00
levlam
f15fa69d3b Describe, why switch_inline_query buttons can't be used in channel chats.
GitOrigin-RevId: c30c892637a077891fc819d67b9dcfe635b7ccbf
2019-04-13 21:59:29 +03:00
levlam
801dbc8f6f Add td_api::addLogMessage.
GitOrigin-RevId: 7ad16cacd59eef90bcd5f55729847d4699bbff64
2019-04-13 21:40:31 +03:00
levlam
c2ed2836c0 Fix CE.
GitOrigin-RevId: 55e3d4160ecb48f39fefd03d825f7a6b25529ef3
2019-04-13 20:08:50 +03:00
levlam
5bfc7ae78a Add get_erase_logevent_promise debug.
GitOrigin-RevId: fb81db952f53ce753948c9c213161f2c0cf6c26b
2019-04-13 20:07:02 +03:00
levlam
a46a9a33dd Do not create input_media for unfinished uploads.
GitOrigin-RevId: 8983548156fdf61795054dd7c01895348df4e009
2019-04-13 19:59:52 +03:00
levlam
fec4bfef2b Add more logging for media albums.
GitOrigin-RevId: c7190ec3c28c1ce030dea91d3b29ccd21af6b1c3
2019-04-13 19:48:57 +03:00
levlam
b1a1635ce7 Fix adding too new messages.
GitOrigin-RevId: 3874c25b07674608d8a4cef61cd4801ce6a5f115
2019-04-13 16:50:06 +03:00
levlam
6e05b22a0f Silence warning.
GitOrigin-RevId: f4180d156618988d9dabea1f088264c7ae633e1a
2019-04-12 16:20:18 +03:00
levlam
b2c4fa4be8 Move logging from WARNING to INFO.
GitOrigin-RevId: 69e355d62add494909f72af97f1032c11c7dff4f
2019-04-12 03:31:26 +03:00
levlam
af39698707 Add reply_markup to stopPoll.
GitOrigin-RevId: 08cf68d42ecc6c25cd8ec7146fb7e3b1856a7207
2019-04-12 02:10:33 +03:00
levlam
542c4d374d Do not preload pinned message for bots.
GitOrigin-RevId: 5d260435a24af21394e133275d01f6e93c7adbeb
2019-04-12 01:03:27 +03:00
levlam
cb856f55a1 More consistent log out checks.
GitOrigin-RevId: df749bf0a8234d5ed537b1a7200d4a3ee037eb7d
2019-04-11 23:32:19 +03:00
levlam
c435360799 Add more td_init logging.
GitOrigin-RevId: 98b5a8e3234ec57cb24d833c726c6d1c2d938992
2019-04-11 23:24:39 +03:00
levlam
6376ed09d0 Silence unneeded notification log event errors.
GitOrigin-RevId: 5f2d00d2575162944f80f2691d5b896950e93d35
2019-04-11 17:13:42 +03:00
levlam
589edf60b1 Really fix documentation.
GitOrigin-RevId: 0114466a4d0b97c8f8ab336fb30f780eac4010c5
2019-04-11 01:01:48 +03:00
levlam
56bc1548ff Fix documentation.
GitOrigin-RevId: 84730331f206451dee9232611f7af985792bd766
2019-04-11 00:59:57 +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
59f36b3b3d Add more debug.
GitOrigin-RevId: f435e1b8531f02092f218189853afc54c47e83b2
2019-04-10 16:37:06 +03:00
levlam
d6e7521aa1 Skip dialogs with unsynchronized group_id.
GitOrigin-RevId: 275014f1c68da71bec5fb63464857babdb90f101
2019-04-10 15:37:06 +03:00
levlam
3afcaa67f8 Add more being_added_message_id debug.
GitOrigin-RevId: 248551b7fb837863e363d548c450e547353facef
2019-04-10 15:22:34 +03:00
levlam
4859485768 Do not erase DeleteMessage log event while closing.
GitOrigin-RevId: 588eeb309964f489186c4614d0dca4c820aedf39
2019-04-10 13:42:46 +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
d42df63ba9 Add Document.get_file_ids method.
GitOrigin-RevId: a885722f10800b5d64ac6f398a4526c874bd2668
2019-04-10 00:55:54 +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
3ac5039912 Delete files from edited message.
GitOrigin-RevId: ac5a68b8f34296df1c918e8b1240eda86a6e4605
2019-04-10 00:13:47 +03:00
levlam
accd15d78c Fix return type documentation in function constructors.
GitOrigin-RevId: f5311028ad942622a92eb72ddc6eda87b40fea35
2019-04-09 23:58:11 +03:00
levlam
f819797ae1 Add title to pushMessageContentChatChangeTitle.
GitOrigin-RevId: e457e2e74dc51db490e156613e7c2d282d455234
2019-04-09 23:43:53 +03:00
levlam
082ba9e020 Add document contents to pushMessageContent.
GitOrigin-RevId: 5baa4853f4e47d9f50f23ca74ebbed0369f17558
2019-04-09 23:39:41 +03:00
levlam
46a0b0036d Add Document.hpp.
GitOrigin-RevId: e26a6aa44453c2a5e2216d91782e94f5bda9686d
2019-04-09 18:52:53 +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
b448160ad6 Send updatePoll for being closed polls.
GitOrigin-RevId: 3e2302d838e5d5dc03b0f6d5b164081b64b1c0eb
2019-04-09 13:25:29 +03:00
levlam
2ca710a26f Better error message, when closing a closed poll.
GitOrigin-RevId: f43d49df5a2435c1cb1e5715feeb10d3e08c20a4
2019-04-09 11:03:14 +03:00
levlam
bbc3bd7441 Do not allow polls with 1 option.
GitOrigin-RevId: d959269ff926ce6e495336f36d1edea1a78abb75
2019-04-09 03:39:05 +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
fe9f1e52d2 Add more DcId checks.
GitOrigin-RevId: ca4bfdc046e78ef7e216c8a5bda8e5ddcd88cfec
2019-04-09 01:37:20 +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
edfb005cc1 tg_cli: add spcaption.
GitOrigin-RevId: 01829fb2a9cd7e9729f0d9b791321600a40e1f0c
2019-04-08 19:53:26 +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
a7d50c1ae8 Cancel more requests when closing.
GitOrigin-RevId: 5d7f37cf8abf45cfe37f3ab589f85a5e96417ffb
2019-04-08 17:57:41 +03:00
levlam
48a15fb0d3 Rename getPrivateMessageLink to getMessageLink.
GitOrigin-RevId: ae6ec6b2bf9eb5926395bc2e1298b231e42d26c1
2019-04-08 04:50:26 +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
923acf298e Fail some sticker queries when closing.
GitOrigin-RevId: 30320a183002e6371f65c80cd21dc2aba318ca17
2019-04-08 01:14:09 +03:00
levlam
f8a807ba4f Add td_db() debug.
GitOrigin-RevId: 7eaa8b1a09a97ea935b46144cf5f6ef48f04712b
2019-04-08 01:09:54 +03:00
levlam
99a27126e5 Do not send GetDialogQuery while closing.
GitOrigin-RevId: c6517f13a881dc4a6bb31072ec0320e17823ef0e
2019-04-08 01:06:58 +03:00
levlam
2ca1bf12f9 Fix possible removal of log events when closing
GitOrigin-RevId: 0450de7025e471387055362d16917c5699e4b987
2019-04-08 00:50:13 +03:00
levlam
8c4494203c Erase all files in private chats, when corresponding message is deleted.
GitOrigin-RevId: 74304b39138fa36f707dab1540fedcf6d6ad4d0e
2019-04-08 00:28:45 +03:00
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
bbde601863 Add more debug.
GitOrigin-RevId: 1995ef700904e89e56ed6bbc68abc2dc4302775d
2019-04-06 01:54:31 +03:00
levlam
83dfa3ba0b Do not send getHistory requests when closing.
GitOrigin-RevId: ea9e71fda1367ba639521e236a5dd57d0fbe2392
2019-04-06 01:04:30 +03:00
levlam
f4472452dc Add strong typing for push message content.
GitOrigin-RevId: 4e9d2c9b7b0b3b78d3e891fddc8db0b04aac4bef
2019-04-05 09:09:58 +03:00
levlam
bcf65c901e Add more being_added_message_id debug.
GitOrigin-RevId: 3040c562be8a826ec5183ea569d7f69aaca6fd40
2019-04-04 23:03:27 +03:00
levlam
078417d423 Add mtpeer.access_hash parsing in push notifications.
GitOrigin-RevId: bba57f1a73627383a2e363c821475cdc6a3dcaad
2019-04-04 21:50:26 +03:00
levlam
0afbff7256 Do not try to get messages from server when closing.
GitOrigin-RevId: ff7a7f04b6c4a87205022bbd21b753a10a86d3b3
2019-04-04 16:51:01 +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
1f85174e5b Return input_media debug.
GitOrigin-RevId: ef82844e9be32d34caf9cb725cda0f37c44be855
2019-04-03 20:57:53 +03:00
levlam
178e0b554c Skip notification groups without chat info.
GitOrigin-RevId: b6927b3d422b1408e365308c0896119fcf75d483
2019-04-03 16:45:57 +03:00
levlam
277d3a788f Protect from accidental message_id removal.
GitOrigin-RevId: 622745e79f396f0998a27a6a8b1a434c2a25c138
2019-04-03 15:32:05 +03:00