Commit Graph

199 Commits

Author SHA1 Message Date
levlam
c474ce5994 Repair file_reference in editMessageMedia.
GitOrigin-RevId: 9826a975dda2838d12943efa03752a79ddee7765
2019-01-25 06:01:09 +03:00
levlam
44ed807417 Do not throw away file ids of reused media.
GitOrigin-RevId: dcc460775768ae87ffc3be01ef8da8985b394463
2019-01-25 04:38:11 +03:00
levlam
3bc0d8eb9a Add FileSourceId.h.
GitOrigin-RevId: 98707d3c9248fb4873ccb8b1e890bb0926bfed73
2019-01-19 05:44:31 +03:00
levlam
d08e3ec449 Add missed call to remove_message_file_sources.
GitOrigin-RevId: 5a2e05f8a285b1964b7c739bec398be52d6a0e88
2019-01-19 00:34:34 +03:00
levlam
1f5a86ea58 Store correspondence between message and FileSourceId in MessagesManager.
GitOrigin-RevId: 1fc23f6032c473639ce24e6564632d80327d24b3
2019-01-18 21:24:03 +03:00
levlam
cc5eaa6b7e Fix addind/removing file source for messages.
GitOrigin-RevId: 726e2671dee6368bce20bac207b8d3929b1a34f6
2019-01-03 18:26:44 +03:00
levlam
44562014ba Add source to MessagesManager::on_get_message_from_database.
GitOrigin-RevId: 02f4838136ca00ce0350e268a22f260446eba49e
2019-02-07 19:43:23 +03:00
levlam
d36b215e22 Move being_added_message_id inside of a Dialog.
GitOrigin-RevId: 94331de1b5e941be0ab2c3853abae9f7517199da
2019-02-07 14:12:22 +03:00
levlam
2cc920d575 Add CHECK that add_message_to_dialog is not called recursively.
GitOrigin-RevId: e5687f5643954f5fecce3e06563d7307a16b490c
2019-02-05 17:10:06 +03:00
levlam
f0dd4b1bad Unify handling of messages.Messages.
GitOrigin-RevId: ebce77b6e8417b0d011e6dd91087432de0a85524
2019-01-12 05:38:17 +03:00
levlam
f6f4f70290 Add remove_dialog_pinned_message_notification.
GitOrigin-RevId: 278ca1ea9914c9a71b3d6835fecd01fb36b536cb
2019-01-10 22:16:05 +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
ccb2649306 Better removing of reply markup after bot has left.
GitOrigin-RevId: 11971b4485fc89fc663afaf5f30ef0f4a88e6d2e
2019-01-07 19:30:09 +03:00
levlam
ea06aa19d6 Forward-declare BinlogEvent.
GitOrigin-RevId: 4ea183c04ec8e5ffd0c2851db399b2a2155557ea
2019-01-06 22:11:02 +03:00
levlam
027c1eafc4 Properly init MessagesManager.
GitOrigin-RevId: 10bd6a41a479389afdbf6d621025bba766f8e850
2019-01-06 01:25:09 +03:00
levlam
9cb950bc05 Update layer 85. Support hide_via_bot.
GitOrigin-RevId: 94fb988d50640f68019007249b8e4860ccea89af
2019-01-03 00:05:47 +03:00
levlam
eaebfad034 Update copyright year.
GitOrigin-RevId: 359e2b43322222922c44c430d3814b0a4c778dc6
2019-01-01 01:02:34 +03:00
levlam
ea3c65b3aa Add disable_pinned_message_notifications option.
GitOrigin-RevId: 42c12c98abf2bbfa6c41e67f8b5b0c2f9a3536e9
2019-12-30 00:35:19 +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
levlam
a05c43ceeb Add NotificationGroupType.
GitOrigin-RevId: 328adc5df3cbe278008c11d5a35da93da88b7d41
2018-12-24 00:34:40 +03:00
levlam
36ab6b3cca Implement separate mention notification group.
GitOrigin-RevId: 036eed8c87e5f60da0c24cd02df11cd48f977019
2018-12-22 23:24:18 +03:00
levlam
d95c39059a Fix unneeded stores of chats to database just after load from database,
GitOrigin-RevId: 36cc8b2b55331286771e86165ccf4cc6dbf39d3a
2018-12-15 20:43:20 +03:00
levlam
aa1727f638 Load only specified number of chats from database.
GitOrigin-RevId: 5b2581b7313064dfea2f2c756c2cffb1af7ee00f
2018-12-15 19:27:06 +03:00
levlam
00c10535a2 Add extract_input_caption method.
GitOrigin-RevId: d49433b0d7d9313bf8f4814c90f28717678b8444
2018-12-12 17:05:32 +03:00
levlam
4f7a52fbb1 Move process_input_caption to MessageEntity.h.
GitOrigin-RevId: 6b5b39d2d82fefbfb6c23df977644c39549ead2e
2018-12-12 16:35:59 +03:00
levlam
d0f8450726 Trying to repair broken messages in the database.
GitOrigin-RevId: 1720ff9641329b1b027dc2529f0b8df8e9124dae
2018-12-12 05:22:26 +03:00
levlam
7627dc27a7 Give different names to MultiPromise actors.
GitOrigin-RevId: 4277553637ca342bc80af07ddcdf013eec506221
2018-12-12 02:48:56 +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
de4e3652ed Load notifications from messages with unread mentions in MessagesManager::do_get_message_notifications_from_database_force.
GitOrigin-RevId: c4db30edc8e4538ec087cb83b129519520ae24fb
2018-12-06 01:34:22 +03:00
levlam
6d37f492e3 Support notifications about new secret chats.
GitOrigin-RevId: 32d9c4c87228c0a70aa6753f0563b52c28cab97e
2018-12-04 19:40:12 +03:00
levlam
25225d5c4b Loading old message notifications from database.
GitOrigin-RevId: dfd63d824dc17efe4dd0e682f0a4adfa5639f273
2018-12-03 18:38:29 +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
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
8bbc0f598e Force restart after message_id overflow.
GitOrigin-RevId: 5cbf43ec9a0b85a02f2b99b5aa17331855a184cc
2018-11-29 14:37:48 +03:00
levlam
c5eee61308 Remove notifications from database by notification_id.
GitOrigin-RevId: 4e155c60a5e721c9d68a0e41b67b07c79ede3c8e
2018-11-29 02:48:47 +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
bd531081ad Add Notification.h.
GitOrigin-RevId: e102973d5585fdf346ac01b09bd2262f9c11fd2e
2018-11-26 20:05:06 +03:00
levlam
9841b28693 Add insert_message function.
GitOrigin-RevId: c78957f5489e5efcc906c93b9ad9b9b5e2644240
2018-11-22 21:27:43 +03:00
levlam
b666f554f4 Fix flush_pending_new_message_notifications.
GitOrigin-RevId: b3b2e75d95760c2f57e71a4eb66da0674ea56da0
2018-11-21 15:23:43 +03:00
levlam
28da401d87 Remove dialog notifications when necessary.
GitOrigin-RevId: d1d1b359d3703de41bd786fdfead9152628de9a6
2018-11-20 20:17:15 +03:00