Commit graph

274 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
612fb2bae7 Adjust some logs 2023-08-25 20:45:01 +03:00
Tulir Asokan
f5c680d76e Ignore chat creation tombstones 2023-08-25 20:44:47 +03:00
Tulir Asokan
ce364fee5a Update changelog 2023-08-25 18:44:13 +03:00
Tulir Asokan
821849a25b Fix protobuf type of incoming message/conversation events 2023-08-25 18:29:27 +03:00
Tulir Asokan
8fcb4283a9 Sleep before reconnecting after pair success 2023-08-24 21:52:40 +03:00
Tulir Asokan
2b1f046e75 Log outgoing participant ID when sending 2023-08-24 14:56:41 +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
6f21016ccf Fix device type field and default to tablet. Fixes #8 2023-08-24 11:21:24 +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
8140abedd5 Log unexpected data 2023-08-21 12:10:16 +03:00
Tulir Asokan
16b1f5d0c9 Ignore link preview tombstones in groups as well 2023-08-21 11:09:36 +03:00
Tulir Asokan
667613f0c5 Ignore downloading messages moving away from groups 2023-08-21 10:58:34 +03:00
Tulir Asokan
fd154bd633 Fix inserting reactions 2023-08-21 09:54:36 +03:00
Tulir Asokan
1a14311ae6 Use SendMessageEvent to ensure reactions get double puppet identifiers 2023-08-21 09:51:48 +03:00
Tulir Asokan
87489f11a8 Add unconditional lib/pq import 2023-08-21 09:30:29 +03:00
Tulir Asokan
271aa4e993 Ignore more tombstones 2023-08-19 11:43:03 +03:00
Tulir Asokan
40f78b8fd6 Only send checkpoint after message reaches phone 2023-08-18 20:43:46 +03:00
Tulir Asokan
af212c9339 Bump version to v0.1.0 2023-08-17 00:48:19 +03:00
Tulir Asokan
ac1a297a58 Update web version number 2023-08-15 18:35:35 +03:00
Tulir Asokan
b89e9b235c Adjust bridge state messages 2023-08-15 18:34:55 +03:00
Tulir Asokan
1fd9c70257 Ignore more tombstones, but only in DMs 2023-08-15 11:28:59 +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
aa12c2e5d2 Fix initial schema version number 2023-08-14 15:07:01 +03:00
Tulir Asokan
37557fcc1a Bump web version number 2023-08-14 15:03:40 +03:00
Tulir Asokan
b05212e47d Add support for messages moving to different chats 2023-08-14 15:03:29 +03:00
Tulir Asokan
3f417ba719 Don't bridge auto-downloading messages 2023-08-13 17:10:37 +03:00
Tulir Asokan
8adad5ea1b Remove unnecessary fake value in protobuf 2023-08-10 20:53:43 +03:00
Tulir Asokan
dbab44c945 Ignore unknown old messages 2023-08-10 16:25:42 +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
3fc26339d8 Send notifications if applicable when using beeper batch sending 2023-08-10 14:09:26 +03:00
Tulir Asokan
c88e5ec550 Fetch conversation info if necessary when creating portal 2023-08-10 14:09:08 +03:00
Tulir Asokan
39ed9890bc Update dependencies 2023-08-10 14:08:48 +03:00
Tulir Asokan
ad4b9a84b7 Adjust error messages 2023-08-10 11:39:18 +03:00
Tulir Asokan
84aa0c6f4f Check existing messages when forward backfilling 2023-08-10 11:39:09 +03:00
Tulir Asokan
211f000b28 Stop bridging protocol switch messages 2023-08-10 11:30:17 +03:00
Tulir Asokan
f72cb7d7da Track number of parts in message 2023-08-09 19:49:36 +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
0169f2140a Enable go vet in pre-commit 2023-08-09 17:52:30 +03:00
Tulir Asokan
2116071b73 Retry on 4xx errors 2023-08-09 15:27:47 +03:00
Tulir Asokan
aa28b6bd38 Send tombstone messages as bridge bot 2023-08-08 23:18:00 +03:00
Tulir Asokan
f9d004a09d Increase ping timeout to 30 seconds 2023-08-08 19:05:08 +03:00
Tulir Asokan
b30d1fe7f8 Add some human-readable error messages 2023-08-08 18:57:23 +03:00