Commit Graph

1480 Commits

Author SHA1 Message Date
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
7466a29da7 Fix dropping inline query results.
GitOrigin-RevId: e886dac54666ce0fc5a506d7db1c15ee62533034
2018-12-02 22:31:18 +03:00
levlam
3347a5e2da Fix OpenSSL armv7 build in iOS example.
GitOrigin-RevId: 078d669b11f1aafc2d6ea26088d663e2bd4b06a0
2018-12-02 22:26:27 +03:00
levlam
013afad0ca Fix races in get_group_force.
GitOrigin-RevId: 30b0902bd5ebaee142f45e06d1d7be6cf6d18762
2018-12-02 22:04:47 +03:00
levlam
3e843ece57 Fix order of chats with pending last message.
GitOrigin-RevId: 53496e0f5e3d48f69c5fe8692283a81a5011cc60
2018-12-02 20:47:39 +03:00
levlam
3e00a5e64b Fix postponing of updateChatReadInbox.
GitOrigin-RevId: 22d8244d438e0d67531cf8f334e87334597c328d
2018-12-02 03:35:58 +03:00
levlam
2b4d076323 Modernize spelling of macOs.
GitOrigin-RevId: 92129b6264af6a04d69d0eb79f942ca20923bb78
2018-12-01 04:15:59 +03:00
levlam
c7cb2978fd Send td_api::updateActiveNotifications.
GitOrigin-RevId: 23c45ad26f13220ff41479da4f4878e02dfbaede
2018-11-30 18:11:58 +03:00
levlam
9615604ecf Fix race in get_message_notification_group_force.
GitOrigin-RevId: 7c75103e168f41b1964504f53d69cee85210d601
2018-11-30 01:57:24 +03:00
levlam
a7e8bd166c Implement remove_message_notifications.
GitOrigin-RevId: bd85166d4fef4d7912300ffee1aa2d6ff2dc0717
2018-11-30 00:02:33 +03:00
levlam
31873111c7 Fix Dialog.last_notification_id after notification deletion.
GitOrigin-RevId: 2edbb4d4120953fc183833fd6d162dc8ce9ba954
2018-11-29 18:36:31 +03:00
levlam
6938d286e5 Simplify usage of remove_message_notification_id.
GitOrigin-RevId: 0538d4d965d93cc087955cb09b2eccbd564e780d
2018-11-29 16:29:39 +03:00
levlam
d069c6cf0e Save last_notification_id in Dialog.
GitOrigin-RevId: 4933eb789e2213b3be2904ae9596d3f453c291ba
2018-11-29 16:17:17 +03:00
levlam
41b1a28e50 Allow instant view to be deleted.
GitOrigin-RevId: 5d8b26d3b583dc873b7fccf620317a4f04a19ae6
2018-11-29 15:43:25 +03:00
levlam
8bbc0f598e Force restart after message_id overflow.
GitOrigin-RevId: 5cbf43ec9a0b85a02f2b99b5aa17331855a184cc
2018-11-29 14:37:48 +03:00
levlam
7b4e8c9e12 Increase version to 1.3.4.
GitOrigin-RevId: 81c40d23a07376167adf2cb14369b30aa81417ff
2018-11-29 02:51:10 +03:00
levlam
c5eee61308 Remove notifications from database by notification_id.
GitOrigin-RevId: 4e155c60a5e721c9d68a0e41b67b07c79ede3c8e
2018-11-29 02:48:47 +03:00
levlam
85352135fc Repairing wrong last_notification_id.
GitOrigin-RevId: f45d3806ea0c6ca38fd7f3c6b820f8f52255edf3
2018-11-29 01:20:20 +03:00
levlam
c1fc81a204 Ensure that all chats have different notification group ids.
GitOrigin-RevId: 45aa312302c7df9616f8b8036d444000d186d149
2018-11-29 00:57:39 +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
07f4d0d94e Add notification_id field to message database.
GitOrigin-RevId: 036e3fb02d7d18c04f568495ae50be9614717a0f
2018-11-28 20:18:50 +03:00
levlam
1b14cffb19 Load message notification groups by group_id.
GitOrigin-RevId: 51169f873ea08a971f53f6c75cd7fe4ad5978b4d
2018-11-28 19:21:18 +03:00
levlam
b5abe4b751 Possibly better handling of wrong is_outgoing flag.
GitOrigin-RevId: a53999ddb5aee83b2a737364ab07c2906b5b84fb
2018-11-28 04:00:39 +03:00
levlam
8e9c2721ef Support different IPv4 formats in IPAddress::init_host_port.
GitOrigin-RevId: 122239f0ba24a1274b0cc50913e8fac3ad25ddc3
2018-11-27 21:26:32 +03:00
levlam
4c618b6f92 Add notification_group_id to DialogDb.
GitOrigin-RevId: 119785b8a6904a9243ba559237a3f02bb4fe1950
2018-11-27 17:39:13 +03:00
levlam
a091d1d0c4 Fix AuthKey storer.
GitOrigin-RevId: 5b3388ec2a924af487bb70aaa24965330663011c
2018-11-27 05:06:34 +03:00
levlam
7d565e359d Improve clean_filename behavior.
GitOrigin-RevId: da29b1a87a27b6bcb7651ae1b261d44dcf18849f
2018-11-27 04:24:43 +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
9841b28693 Add insert_message function.
GitOrigin-RevId: c78957f5489e5efcc906c93b9ad9b9b5e2644240
2018-11-22 21:27:43 +03:00
levlam
9118cbc71c Simplify adding message to dialog.
GitOrigin-RevId: c0cca65a5deafd763c215030c7dc82e92951b406
2018-11-22 21:08:26 +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
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
1f40a2dc78 Support update_pts in updateChannelTooLong from getDifference.
GitOrigin-RevId: 4400186159d0dbc62eef70bd0d41f103a1dd2c41
2018-11-21 20:30:29 +03:00
levlam
5ee8b9ee3b Fix total_count.
GitOrigin-RevId: 23ddc4c41de65b22e668886208abe8b84aaa8e24
2018-11-21 19:44:51 +03:00
levlam
a199a17282 Fix send_remove_group_update.
GitOrigin-RevId: c4ce6035da4e5cc72c7be2a2164c322884f0175c
2018-11-21 18:00:14 +03:00
levlam
68f477d71e Add more getDifference logging.
GitOrigin-RevId: 047ed590512ec3f97c90d08d2cd709d7e4948519
2018-11-21 17:14:35 +03:00
levlam
f2a4cbd1f7 Better handling of channelDifferenceTooLong.
GitOrigin-RevId: db70a044bf34c7e30b57266e361cd9579f864e39
2018-11-21 16:08:37 +03:00