Commit graph

101 commits

Author SHA1 Message Date
Tulir Asokan
5767138006 Handle delete events during portal create sleep
Probably fixes #7
2023-08-25 20:47:26 +03:00
Tulir Asokan
0c5be59fad Include raw protobuf data in events for debugging 2023-08-24 14:48:03 +03:00
Tulir Asokan
2ec1dcda6c Log incoming message metadata before processing it 2023-08-24 14:34:45 +03:00
Tulir Asokan
c0fe4a16df Improve suspicious data detection 2023-08-24 14:23:15 +03:00
Tulir Asokan
5f47cbc6e6 Adjust constants and defaults 2023-08-24 13:37:21 +03:00
Tulir Asokan
97a3c97b8e Handle conversations moving into spam 2023-08-21 19:59:42 +03:00
Tulir Asokan
4229f85d09 Move double puppeting login code to mautrix-go 2023-08-21 13:52:03 +03:00
Tulir Asokan
fdce256a03 Ignore conversation events where DM turns into group
Google seems to randomly send group chat info with a DM ID, then revert
back to the correct DM data in the next update. Since DMs should never
turn into groups, just ignore those events entirely.
2023-08-21 12:11:56 +03:00
Tulir Asokan
18288b5ea5 Don't send notifications from batch sending if last message is old 2023-08-15 11:05:21 +03:00
Tulir Asokan
b05212e47d Add support for messages moving to different chats 2023-08-14 15:03:29 +03:00
Tulir Asokan
bd213bf550 Delete state if phone ID changes on login 2023-08-10 15:55:33 +03:00
Tulir Asokan
efb0008ca0 Make event handling synchronous 2023-08-10 15:40:43 +03:00
Tulir Asokan
ad4b9a84b7 Adjust error messages 2023-08-10 11:39:18 +03:00
Tulir Asokan
211f000b28 Stop bridging protocol switch messages 2023-08-10 11:30:17 +03:00
Tulir Asokan
d1ba596504 Handle message updates properly instead of dropping in-progress messages 2023-08-09 17:54:46 +03:00
Tulir Asokan
3df8296d9f Mark chat as read on conversation events 2023-08-09 17:52:38 +03:00
Tulir Asokan
439f5d1033 Delay missed backfill if messages are recent 2023-08-08 17:05:56 +03:00
Tulir Asokan
b958401b73 Don't resync if session ID doesn't change 2023-08-02 15:07:02 +03:00
Tulir Asokan
20599e93f3 Include room ID in portal logger 2023-08-02 15:02:54 +03:00
Tulir Asokan
13a8d9b9a9 Add more logs for syncing conversations 2023-08-02 14:54:13 +03:00
Tulir Asokan
7618afed7f Log conversation data when syncing (ref #6) 2023-08-02 14:37:01 +03:00
Tulir Asokan
57dfe0fc72 Log conversation status when syncing 2023-07-24 16:48:22 +03:00
Tulir Asokan
d7d1abc3b7 Fix some bugs 2023-07-20 01:54:30 +03:00
Tulir Asokan
8e814bd05b Send correct bridge state if phone isn't responding 2023-07-20 01:11:59 +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
d410ba1e0c Sync archive/pinned status 2023-07-19 22:15:34 +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
ecabb22407 Add option to get last code immediately in provisioning API 2023-07-18 14:52:40 +03:00
Tulir Asokan
4d6233d94b Rename binary package to gmproto 2023-07-17 16:51:31 +03:00
Tulir Asokan
6602e6c937 Add provisioning API 2023-07-17 01:27:12 +03:00
Tulir Asokan
6225b83d2f Refactor login flow 2023-07-16 16:13:11 +03:00
Tulir Asokan
3fefda3a96 Refactor more things 2023-07-16 14:36:13 +03:00
Tulir Asokan
511e85c242 Handle pair revoke events 2023-07-16 02:41:34 +03:00
Tulir Asokan
abb2c8a21f Send unpair request when logging out 2023-07-16 02:11:25 +03:00
Tulir Asokan
bbc4da21b7 Add better bridge states 2023-07-15 15:05:40 +03:00
Tulir Asokan
7860fb64c8 Handle read receipts from Matrix 2023-07-15 14:38:24 +03:00
Tulir Asokan
a21388cdfc Sync read status after backfill 2023-07-15 02:17:36 +03:00
Tulir Asokan
376f908a03 Add basic support for incoming reactions 2023-07-13 00:44:57 +03:00
Tulir Asokan
1f45d5bdec Add basic forward backfill support 2023-07-12 02:43:09 +03:00
Tulir Asokan
c802d2bced Handle events synchronously and ignore duplicates 2023-07-12 02:18:14 +03:00
Tulir Asokan
e94ea17dad Create portals for recent chats automatically 2023-07-09 18:18:01 +03:00
Tulir Asokan
1615e146b6 Update library
Co-authored-by: zero <108243503+0xzer@users.noreply.github.com>
2023-07-09 14:49:55 +03:00
Tulir Asokan
922ffdcf6b Update bridge states 2023-07-04 00:03:36 +03:00
Tulir Asokan
6fca366d6a Send login QR codes to management room 2023-07-03 16:14:04 +03:00
Tulir Asokan
2b37a6d718 Fix some bugs 2023-07-02 23:47:31 +03:00
Tulir Asokan
63284481d7 Add initial compiling version of bridge 2023-07-02 17:52:28 +03:00