Commit graph

400 commits

Author SHA1 Message Date
Tulir Asokan
3e6dd5f130 Allow redacting messages in rooms with no send permission 2023-07-20 02:10:46 +03:00
Tulir Asokan
c742a1fe66 Change log level 2023-07-20 02:03:50 +03:00
Tulir Asokan
ef8a60977f Don't try to sync power levels before creating room 2023-07-20 02:03:07 +03:00
Tulir Asokan
d7d1abc3b7 Fix some bugs 2023-07-20 01:54:30 +03:00
Tulir Asokan
e0df07e384 Make backfill limits configurable 2023-07-20 01:44:59 +03:00
Tulir Asokan
8e814bd05b Send correct bridge state if phone isn't responding 2023-07-20 01:11:59 +03:00
Tulir Asokan
157c9ff17a Stop using maulogger in Portal 2023-07-20 00:01:05 +03:00
Tulir Asokan
1beb51fc01 Send more notices to management room 2023-07-19 23:44:49 +03:00
Tulir Asokan
7981a11bd9 Make initial chat sync count configurable 2023-07-19 23:34:25 +03:00
Tulir Asokan
498f210e10 Move fetching initial conversations to bridge code 2023-07-19 23:30:27 +03:00
Tulir Asokan
0e3f211118 Add option to reconnect aggressively 2023-07-19 23:06:23 +03:00
Tulir Asokan
f57735901f Only fetch room tags once when syncing 2023-07-19 22:35:19 +03:00
Tulir Asokan
ecae11f6b2 Fix deduplicating updates that flip back and forth 2023-07-19 22:29:30 +03:00
Tulir Asokan
d410ba1e0c Sync archive/pinned status 2023-07-19 22:15:34 +03:00
Tulir Asokan
d367469000 Sync read only and RCS status as power levels 2023-07-19 21:40:39 +03:00
Tulir Asokan
0d8edd817a Clear self_participant_ids on logout 2023-07-19 21:15:24 +03:00
Tulir Asokan
907e6af77b Store all own participant IDs for proper multi-sim support 2023-07-19 20:55:52 +03:00
Tulir Asokan
bf277e197f Always close response body in uploads 2023-07-19 14:19:09 +03:00
Tulir Asokan
a4639eb668 Rename long poll file and functions to be more accurate 2023-07-19 14:13:02 +03:00
Tulir Asokan
01464c5cc2 Unnest long polling handler 2023-07-19 14:12:23 +03:00
Tulir Asokan
d99da61869 Refactor all protobuf HTTP request sending into shared functions 2023-07-19 13:59:11 +03:00
Tulir Asokan
3e2348447a Merge response waiting methods with sending 2023-07-19 01:20:32 +03:00
Tulir Asokan
6caf7e89fb Move start login methods to pair.go 2023-07-19 01:19:04 +03:00
Tulir Asokan
b46885ad58 Move download method to same file as upload 2023-07-19 01:18:06 +03:00
Tulir Asokan
afae081429 Merge all RPC call methods into one file 2023-07-19 01:17:12 +03:00
Tulir Asokan
1ef5b56259 Merge pairing-related code into one file 2023-07-19 01:08:13 +03:00
Tulir Asokan
1d32fd14da Remove unnecessary route definitions 2023-07-19 01:06:09 +03:00
Tulir Asokan
e7a6c3f7af Fix panic when logging in 2023-07-18 15:13:53 +03:00
Tulir Asokan
ecabb22407 Add option to get last code immediately in provisioning API 2023-07-18 14:52:40 +03:00
Tulir Asokan
30bfa14141 Don't send listen events in the non-authed poller 2023-07-18 14:51:18 +03:00
Tulir Asokan
78d0bcd56d Remove RPC message builder 2023-07-18 03:08:01 +03:00
Tulir Asokan
9680040ea1 Reorganize protobuf schemas 2023-07-18 02:57:20 +03:00
Tulir Asokan
8e5d76b1d3 Add get conversation method 2023-07-18 02:19:25 +03:00
Tulir Asokan
a6b91da574 Use generics for casting responses 2023-07-18 02:11:43 +03:00
Tulir Asokan
4599f3f0e5 Refactor incoming RPC data parsing to remove useless structs 2023-07-18 02:01:06 +03:00
Tulir Asokan
604aa19a46 Remove warning in readme 2023-07-17 18:40:52 +03:00
Tulir Asokan
5f450f3294 Make attachment decryption less hacky 2023-07-17 17:58:11 +03:00
Tulir Asokan
37a6c09dc3 Remove unused request functions 2023-07-17 16:57:28 +03:00
Tulir Asokan
13124562b7 Rename crypto files 2023-07-17 16:57:21 +03:00
Tulir Asokan
4d6233d94b Rename binary package to gmproto 2023-07-17 16:51:31 +03:00
Tulir Asokan
7008a9ca60 Move proto files to binary directory 2023-07-17 16:49:49 +03:00
Tulir Asokan
b5bc6bfd61 Clean up logs and move some functions 2023-07-17 16:43:34 +03:00
Tulir Asokan
c9a26566c4 Mark .pb.raw files as binary 2023-07-17 02:09:54 +03:00
Tulir Asokan
84276a631a Use embed package for raw proto descriptions 2023-07-17 02:06:35 +03:00
Tulir Asokan
db53aaf3e7 Implement start new chat API 2023-07-17 01:52:13 +03:00
Tulir Asokan
6602e6c937 Add provisioning API 2023-07-17 01:27:12 +03:00
Tulir Asokan
6786c10fda Add methods for getting contacts and starting chats 2023-07-17 01:10:01 +03:00
Tulir Asokan
019f237be1 Fix field name casing 2023-07-16 16:19:33 +03:00
Tulir Asokan
fa5928e405 Remove some panics 2023-07-16 16:18:45 +03:00
Tulir Asokan
6225b83d2f Refactor login flow 2023-07-16 16:13:11 +03:00