Commit graph

16 commits

Author SHA1 Message Date
Tulir Asokan
3617b991c8 Update whatsmeow 2022-08-01 09:49:27 +03:00
Tulir Asokan
8012368de5 Fix backfill queue query. Fixes #517 2022-06-17 10:33:47 +03:00
Tulir Asokan
a948ea0146 Move a bunch of stuff to mautrix-go
See d578d1a610

Database upgrades from before v0.4.0 were squashed, users must update
to at least v0.4.0 before updating beyond this commit.
2022-05-22 01:06:30 +03:00
Tulir Asokan
d33f5aa3d2 Stop ignoring errors deleting backfill queue stuff 2022-05-19 11:45:08 +03:00
Tulir Asokan
68b2d663ac Fix deleting historical messages of chats that won't be bridged 2022-05-19 11:41:18 +03:00
Tulir Asokan
60496e5976 Fix last message timestamp in history_sync_conversation table 2022-05-19 11:41:02 +03:00
Sumner Evans
ec8f75e50e
backfill: add option to mark unread using account data 2022-05-18 10:40:29 -06:00
Sumner Evans
17c697445d
history sync: store timestamp when the message got put into the DB
This will be useful for debugging issues with missing messages
2022-05-15 21:42:42 -06:00
Sumner Evans
caf0a363c9
backfill: delete messages for rooms the user is not in
If the chat turns out to be not bridgable due to the user not being in
the room, delete the messages, and stop trying to backfill it.
2022-04-27 08:29:20 -06:00
Tulir Asokan
5b9fe8e08a Delete messages by timestamp range instead of message ID 2022-04-18 20:12:01 +03:00
Tulir Asokan
1a5d5f5adf Adjust logs and other things 2022-04-16 22:58:47 +03:00
Tulir Asokan
6e976fb3fc Default to backfilling all chats in history sync 2022-04-16 22:42:17 +03:00
Sumner Evans
eb0a13a753
historysync: use userID, conversationID, messageID as PK 2022-04-05 13:16:31 -06:00
Sumner Evans
830c294b91
historysync: delete history sync messages once backfilled 2022-03-30 17:40:23 -06:00
Sumner Evans
12a23e2ca5
historysync: refactor to utilize backfill queue
Also sends the `m.room.marker` event when a backfill stage is complete.
2022-03-29 19:26:11 -06:00
Sumner Evans
1ecdb71ac3
database: add backfill queue and history sync tables 2022-03-29 12:16:30 -06:00