Commit Graph

477 Commits

Author SHA1 Message Date
levlam
44ed807417 Do not throw away file ids of reused media.
GitOrigin-RevId: dcc460775768ae87ffc3be01ef8da8985b394463
2019-01-25 04:38:11 +03:00
levlam
9f6d9ec48c Fix crash.
GitOrigin-RevId: 4463222ba6259feb15ee74face187d430030401d
2019-01-20 17:59:02 +03:00
levlam
e5400074ce Move FileType to FileType.h.
GitOrigin-RevId: 7e35c0f30b7755755b0583704dcfe344cc28d117
2019-01-20 00:54:29 +03:00
levlam
561b409d02 Disable notifications for more message content types just in case.
GitOrigin-RevId: a0c8cfe6800d3e49fcd797240d9a6ca217139363
2019-01-19 03:53:43 +03:00
levlam
4f16a72b02 Move editNotification update to a better place.
GitOrigin-RevId: 6735f3fea8bedd28447e3c4714ee00a8d4b10d9a
2019-01-19 03:44:54 +03:00
levlam
b61efbb40d Delete self-destructed files if a message content was changed.
GitOrigin-RevId: 54c39a5a7ce014a3bc1f05c11d559ef2518b6bb0
2019-01-19 01:32:05 +03:00
levlam
51b3711171 Better get_message_file_source_id.
GitOrigin-RevId: 4de6e99640bb9fc4b6be8ddbc89817be3d5e1f99
2019-01-19 01:19:15 +03:00
levlam
d805569459 Reget failed to edit message from the server.
GitOrigin-RevId: 5afe193653c8d9450a886c878c2d3eab1f42fb74
2019-01-19 01:10:10 +03:00
levlam
d08e3ec449 Add missed call to remove_message_file_sources.
GitOrigin-RevId: 5a2e05f8a285b1964b7c739bec398be52d6a0e88
2019-01-19 00:34:34 +03:00
levlam
ff0130c48e Use change_files_source in MessagesManager.
GitOrigin-RevId: 46c75e91e6ac02f76dba58feb484e57de5609ea3
2019-01-18 23:40:23 +03:00
levlam
1f5a86ea58 Store correspondence between message and FileSourceId in MessagesManager.
GitOrigin-RevId: 1fc23f6032c473639ce24e6564632d80327d24b3
2019-01-18 21:24:03 +03:00
levlam
8851b9d066 Implement FileSource.
GitOrigin-RevId: 2cbeab03d2ea1fa56d9f746c5c6c6a41e28d2795
2019-01-14 21:46:04 +03:00
levlam
cc5eaa6b7e Fix addind/removing file source for messages.
GitOrigin-RevId: 726e2671dee6368bce20bac207b8d3929b1a34f6
2019-01-03 18:26:44 +03:00
Arseny Smirnov
a75726d77a FileManager: file references draft
GitOrigin-RevId: 8d37ee4b5520497df08f49e598ae91825e74e1ea
2018-12-05 12:32:31 +03:00
levlam
3367067fa9 Preload pinned message in add_message_to_dialog.
GitOrigin-RevId: a07c96e3cdd183b720b8ece8629ce4dd5a251358
2019-02-07 19:54:43 +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
79eae149eb Add slightly more logging.
GitOrigin-RevId: 34fe24677606d08013baf04a9f48009ee7911842
2019-02-06 19:28:49 +03:00
levlam
dcd790ad09 Add CHECK debug.
GitOrigin-RevId: 05f99e0f7989d7c085c49990c6926d926bd502bb
2019-02-06 19:10:01 +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
b19dacf20b Do not try to load history in empty chats.
GitOrigin-RevId: 6ab22148eff7843abe251f7138e79f1f69f05b17
2019-01-14 01:32:30 +03:00
levlam
90cde3dea0 Better handling of empty dialogs and last pending message.
GitOrigin-RevId: cb9905ab05a7f60c2430d64b6f6a17ddbd54beb3
2019-01-14 01:22:06 +03:00
levlam
ee2d557531 Fix wrong calls to remove_notification.
GitOrigin-RevId: 3e752924af1511d9fd8f721fde93aa90e7f96123
2019-01-13 23:26:14 +03:00
levlam
7cead9fc0f Add more logging.
GitOrigin-RevId: c943c0ee7ebbe7c3dc0b50b147226063e11c1e0a
2019-01-13 21:22:00 +03:00
levlam
e22e23a5ff Add source to on_get_user and on_get_chat.
GitOrigin-RevId: a3f187dc0d7d981df6ca3f2566f66678b4ad4774
2019-01-12 06:48:39 +03:00
levlam
f0dd4b1bad Unify handling of messages.Messages.
GitOrigin-RevId: ebce77b6e8417b0d011e6dd91087432de0a85524
2019-01-12 05:38:17 +03:00
levlam
91627605f6 Remove secret chat notification on chat opening.
GitOrigin-RevId: 4bd180b95b520bc1a9aca645d07580d5e3aa4228
2019-01-12 03:44:32 +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
042c43ff46 Always send updateScopeNotificationSettings.
GitOrigin-RevId: 60d7e10e9b9e7d1f67f80cd7193ade42e52f3ef9
2019-01-11 03:30:55 +03:00
levlam
9b95544677 Always cancel file upload.
GitOrigin-RevId: d23729bde64972012a37a81620b1c4626648b342
2019-01-11 02:55:40 +03:00
levlam
f6f4f70290 Add remove_dialog_pinned_message_notification.
GitOrigin-RevId: 278ca1ea9914c9a71b3d6835fecd01fb36b536cb
2019-01-10 22:16:05 +03:00
levlam
134785fc3d Preload pinned message.
GitOrigin-RevId: 9805a684ce0bfe5af26ac27c608748484c11d64d
2019-01-10 22:01:15 +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
5b941456d2 Add td_api::getMessageLocally.
GitOrigin-RevId: 8b6dec4aadc0d9b1005444fe82a7db12cf1841a7
2019-01-09 05:57:43 +03:00
levlam
ef7914a26d Delay notifications in the open chat for 1 second.
GitOrigin-RevId: 9162b726f404b5116fd64a4894bb16a76e1c1aea
2019-01-09 05:13:03 +03:00
levlam
cccab2ba62 Better forward_info changes logging.
GitOrigin-RevId: 49ba4447cbe7998e7c275377e545c2fe7e54b92a
2019-01-08 22:48:43 +03:00
levlam
42d59ba6b3 Add additional delay for somw service message notifications.
GitOrigin-RevId: 181e4e4d8eab72b161ae9cc1ab5961f80a0b5d99
2019-01-08 21:24:06 +03:00
levlam
eeb2faede0 Fix pinned_message_notification_message_id after notification removal.
GitOrigin-RevId: 88cd26d1888a83c5d3448f9f2deeb92ed96140ec
2019-01-07 23:30:34 +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
3c6008aa9c Fix call to on_update_secret_chat_state.
GitOrigin-RevId: 110b1b4fe066ae3cfa064baa9d861653cb284222
2019-01-07 18:08:01 +03:00
levlam
a6bb57d3dd Do not notifiations about messages from inactive basic groups.
GitOrigin-RevId: a930e5f235ecf133347705e50d6647615dded091
2019-01-07 17:54:45 +03:00
levlam
5438119bb4 Fix Global.h and TdDb.h includes.
GitOrigin-RevId: 89fa1ee3e8071ad3f27687f79d1a52de113f9705
2019-01-06 22:59:17 +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
05a99dedb1 Improve updateMessageId handling.
GitOrigin-RevId: 6eb271f26f3bfda0544bb887e8b763f3b5b4b452
2019-12-30 02:56:52 +03:00
levlam
ea3c65b3aa Add disable_pinned_message_notifications option.
GitOrigin-RevId: 42c12c98abf2bbfa6c41e67f8b5b0c2f9a3536e9
2019-12-30 00:35:19 +03:00
levlam
5c2c8a1844 Trying to get missing sent messages from server.
GitOrigin-RevId: 64ab8c7b8302024e0230977e624711f88c21ab4f
2018-12-27 05:06:26 +03:00