Commit Graph

1779 Commits

Author SHA1 Message Date
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
d4882f7c07 Add change_files_source method.
GitOrigin-RevId: 25078e0ca82d34489727823bfcfa781424f48913
2019-01-18 23:12:09 +03:00
levlam
afed91fec9 Add create_*_file_source methods.
GitOrigin-RevId: 52c2f793bb911a7068b0ee29f8b15086c7c74a67
2019-01-18 22:36:23 +03:00
levlam
94f94750fe Add FileReferenceManager::get_current_file_source_id.
GitOrigin-RevId: 29f3bef8926e205c0c262ffe740c4cbd444e46b7
2019-01-18 22:10:38 +03:00
levlam
1f5a86ea58 Store correspondence between message and FileSourceId in MessagesManager.
GitOrigin-RevId: 1fc23f6032c473639ce24e6564632d80327d24b3
2019-01-18 21:24:03 +03:00
Arseny Smirnov
5bba9b0470 SetWithPosition: fixes and tests
GitOrigin-RevId: 7b74a05c72261222a4f43b86eecad668ffd40403
2019-01-18 19:39:19 +03:00
Arseny Smirnov
6ca19e05c5 FileReferenceManager: bugfixes
GitOrigin-RevId: 51d33c307297124dddb72224220977e1f31a15bd
2019-01-18 17:52:49 +03:00
Arseny Smirnov
a6e47943c3 FileReferenceManager: new queries logic
GitOrigin-RevId: 82592baaed566ef28e044cd0dc9fe67b625ae2ab
2019-01-17 23:42:00 +03:00
levlam
8851b9d066 Implement FileSource.
GitOrigin-RevId: 2cbeab03d2ea1fa56d9f746c5c6c6a41e28d2795
2019-01-14 21:46:04 +03:00
levlam
c0815f868c Fix Variant constructors.
GitOrigin-RevId: 12942de32a8cb54b5f2fd8bc1888072c032b3025
2019-01-14 21:04:40 +03:00
levlam
f54a0c3e70 File reference improvements.
GitOrigin-RevId: 40d3ac6cde73503af544df464cc9ff569fb4016d
2019-01-05 18:13:27 +03:00
levlam
cc5eaa6b7e Fix addind/removing file source for messages.
GitOrigin-RevId: 726e2671dee6368bce20bac207b8d3929b1a34f6
2019-01-03 18:26:44 +03:00
Arseny Smirnov
b53cd5d76a FileReference: better infinity loop protection
GitOrigin-RevId: 068fdbbb574eae03f3bb4b5b06ac3960aaca59c0
2018-12-09 10:05:26 +03:00
Arseny Smirnov
bbecdcda20 FileReference: minor improvements
GitOrigin-RevId: 22c605f90445d7d6aefefea16c834051e29b1fed
2018-12-09 01:00:27 +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
d6474dc83d Lazy GetHostByNameActor creation.
GitOrigin-RevId: 423a126e40a77d47cfa8d16889729f3102194724
2019-02-05 01:32:37 +03:00
levlam
0defd8c927 Use Google DNS only if blocking is expected.
GitOrigin-RevId: 9a3b258d1ce9b0f084fb90bb1d86024b0cbee550
2019-02-05 01:24:46 +03:00
levlam
72ac6667ce Never set 0 session_id.
GitOrigin-RevId: 58a7074812fa330930b033d2ffcfcc1ae0e803ec
2019-02-04 19:39:09 +03:00
levlam
f89dbc8148 Make session_id private.
GitOrigin-RevId: c9a942a691a6bc8974d02f0cd0cc0f916c679d61
2019-02-04 18:44:29 +03:00
levlam
0b7def8733 Add dns_resolver log tag.
GitOrigin-RevId: 17fed9f8350bb49e18b875ed21290c7805875df6
2019-02-04 17:02:21 +03:00
levlam
aab7300681 Allow resolving of 127.0.0.1. in test.
GitOrigin-RevId: 03cc13813672fac075e178fbe03e878fcdf451f6
2019-02-04 07:24:05 +03:00
levlam
8687be3f12 Guarantee crash on Result self-move.
GitOrigin-RevId: 64475d63e5ccc3ebac99d21946941b8f5689cfe8
2019-02-04 07:05:44 +03:00
levlam
786adb165d Fix CE.
GitOrigin-RevId: 9c1f8111360668b5b06228fcf23512bb64b3d935
2019-02-04 06:50:47 +03:00
levlam
ca92472b69 Support numeric hosts in GoogleDnsResolver.
GitOrigin-RevId: 6768a90ad7f98d83f507051564fb1646d3834aad
2019-02-04 06:32:10 +03:00
levlam
ee082cd58d Disable excessive logging in GetHostByName test.
GitOrigin-RevId: ac7d4b464397eba581e242bb7ca79f22a54abad0
2019-02-04 05:46:17 +03:00
levlam
6ccaf358b7 Support IDN hosts in all resolvers.
GitOrigin-RevId: c5b2741dd2d4e8bb0361e6dddf3b6749e5195c6a
2019-02-04 05:39:20 +03:00
levlam
fc8917a4ed Rename ResolveType to ResolverType.
GitOrigin-RevId: 64350527620c08bb192a18d951d5b3b5216f1162
2019-02-04 04:36:13 +03:00
levlam
da59ac47ea Support list of resolve types in GetHostByNameActor.
GitOrigin-RevId: 5aabc978b9a6caaecc2bf6c432421b2a4d766559
2019-02-04 04:32:32 +03:00
levlam
73a39a4699 GetHostByName: split cached values and active queries.
GitOrigin-RevId: c3d0ebd9202a22bf83ef03a044bda0b2d00d46b6
2019-02-04 03:19:31 +03:00
levlam
2dd4b91d51 Minor GetHostByName improvements.
GitOrigin-RevId: 9ceba9a941e3213a1748d22f38a126ace2d57e56
2019-02-04 03:12:40 +03:00
levlam
83037ee014 GetHostByName fixes and improvements.
GitOrigin-RevId: 531a53c4d559662be110d1ad6938ca3e52ccbc1e
2019-02-04 02:29:37 +03:00
Arseny Smirnov
2a0db51cd9 GetHostByName: better test
GitOrigin-RevId: 2be0f5e7b3122c7fd9122fcab763dffcad3d47ab
2019-01-24 23:03:30 +04:00
levlam
311cd72feb enum class for ResolveType.
GitOrigin-RevId: 3cb46ab9c1c6913364748136722d2e8485cc6008
2019-01-24 20:21:00 +03:00
levlam
12ffc22483 Minor GetHostByName improvements.
GitOrigin-RevId: ff61c5aa543067e855a6f4a7f25c579a8c17aa87
2019-01-24 20:08:29 +03:00
Arseny Smirnov
bc838db8ec GetHostByNameActor: bufix and more tests
GitOrigin-RevId: fd2fb695724baf5531fcdc232c421684bd5cb139
2019-01-24 21:07:24 +04:00
Arseny Smirnov
c07b26e45c GetHostByNameActor: Options and test
GitOrigin-RevId: afebe6e940b2048d3ef6f6368ff824443d55a909
2019-01-24 17:07:11 +04:00
Arseny Smirnov
320d660f1c GetHostByNameActor support google dns
GitOrigin-RevId: 6ecc589426368cf2a821546b1dc104e4bf324335
2019-01-24 16:18:23 +04:00
Arseny Smirnov
dd190c7d79 DnsOverHttps class with a test
GitOrigin-RevId: 4f8785377ddbe47a59fe6e03628685902503e1f6
2019-01-24 13:47:54 +04:00