Commit graph

118 commits

Author SHA1 Message Date
Tulir Asokan 2fed7f2d2e Use static start time if time zone is invalid 2024-04-11 17:34:49 +03:00
Tulir Asokan fee357b652 Count messages that failed to save 2024-03-12 20:58:16 +02:00
Tulir Asokan 103bfc31c6 Update dependencies and lots of code
* Bump minimum Go version to 1.21
* Add contexts everywhere
* Switch database code to new dbutil patterns
* Finish switching away from maulogger
2024-03-11 22:28:06 +02:00
Tulir Asokan 4efb226045 Remove sync.OnceFunc usage. Fixes #679 2023-12-28 17:13:16 +01:00
Toni Spets a1f1c91be1 Prevent creating portals for non-backfillable conversations
Defer initializing portal on backfill until there are messages.
2023-12-19 14:57:10 +02:00
Tulir Asokan 7e25e2c2da Fix legacy backfill not checking if conversations have messages
Fixes #631
2023-10-16 13:09:37 +03:00
Tulir Asokan 6feebd827b Add basic newsletter support. Fixes #655 2023-10-13 18:10:26 +03:00
Tulir Asokan 8b1308595f Add support for collecting incoming galleries into single event 2023-09-04 19:47:00 +03:00
Tulir Asokan 45e5290f0c Update mautrix-go to move stuff to util 2023-08-05 19:27:00 +03:00
Tulir Asokan 93aac0a5fb Implicitly enable timer when receiving disappearing messages in DMs 2023-08-03 13:30:38 +03:00
Tulir Asokan e1189bad4b Log conversation settings when saving history sync payloads 2023-08-02 17:24:28 +03:00
Tulir Asokan b33affe97d Log if finding reply target fails 2023-06-28 23:29:18 +03:00
Tulir Asokan 1ee0841add Fix function name 2023-06-22 12:49:49 +03:00
Tulir Asokan 8d93f7c036 Fix handling max_initial_conversations being -1 in legacy backfill 2023-06-22 12:48:00 +03:00
Tulir Asokan c850f6f373 Fix things in legacy backfill 2023-06-19 21:39:25 +03:00
Tulir Asokan 5892169dd0 Ignore @lid chats in history syncs 2023-06-19 21:39:25 +03:00
Tulir Asokan 11beb10b97 Remove MSC2716 backfill support on Synapse 2023-06-19 21:39:25 +03:00
Tulir Asokan 2d33bb1673 Add non-MSC2716 backfill support 2023-06-19 21:39:25 +03:00
Tulir Asokan 559ac719a4 Store message sender mxid in database 2023-05-31 16:34:30 +03:00
Tulir Asokan d320c4ab08 Add more detailed logging when receiving history syncs 2023-03-02 17:33:44 +02:00
Tulir Asokan 3a5ca36d49 Fix disappearing message timing 2023-01-16 17:15:04 +02:00
Tulir Asokan 528683372b Use atomic read receipts on hungryserv backfill 2022-12-09 13:06:36 +02:00
Tulir Asokan 2015d6f963 Stop backfill loop when channel is closed 2022-12-05 18:09:18 +02:00
Tulir Asokan 5881247f73 Add timer to enqueue backfills 2022-12-05 18:05:08 +02:00
Tulir Asokan 357f165581 Only enqueue backfill after last history sync blob 2022-11-30 12:23:00 +02:00
Tulir Asokan d087f3f6b1 Add double puppet values in reaction backfill 2022-11-22 10:52:19 +02:00
Tulir Asokan cd584d9c05 Mark room as read after backfilling disappearing notice 2022-11-17 22:18:31 +02:00
Tulir Asokan 4bfd3bd644 Fix marking messages as disappearing while backfilling on SQLite 2022-11-10 23:12:08 +02:00
Sumner Evans f51fb5c5c2
historysync: fix typo
Signed-off-by: Sumner Evans <sumner@beeper.com>
2022-11-10 10:07:08 -07:00
Sumner Evans 433d901658 backfill: add option to only sync unread state if chat is younger than threshold
Signed-off-by: Sumner Evans <sumner@beeper.com>
2022-10-12 13:48:38 -06:00
Tulir Asokan ea8c58b4f5 Fix merged captions in backfill 2022-09-28 16:43:27 +03:00
Tulir Asokan 7a933124fa Use transaction for saving reactions in backfill 2022-09-28 15:54:08 +03:00
Tulir Asokan 7a6c4d53d3 Backfill reactions when using hungryserv 2022-09-28 15:07:10 +03:00
Tulir Asokan f0401ee81e Generate different deterministic event IDs for captions 2022-09-20 17:31:12 +03:00
Tulir Asokan 2e934abe43 Disable state_events_at_start on hungryserv 2022-09-12 22:14:41 +03:00
Tulir Asokan 985b33fd7c Backfill with deterministic event IDs on hungryserv 2022-08-25 17:05:45 +03:00
Tulir Asokan f79efa9037 Update mautrix-go 2022-08-14 19:37:11 +03:00
Tulir Asokan 2bc5c32d48 Add double puppet value to backfilled event wire content 2022-07-05 16:41:28 +03:00
Tulir Asokan bf4c01648f Move most double puppet source key adding to mautrix-go 2022-06-30 20:56:26 +03:00
Tulir Asokan aa0daceb85 Add config option to bundle caption with media message 2022-06-17 11:34:24 +03:00
Sumner Evans 1f292dc1c5
Merge pull request #502 from mautrix/backfill-queue-fixes
backfill: fixes and minor refactors
2022-05-25 08:40:44 -06:00
Sumner Evans 0939bb3bc3
backfill status event: send first expected timestamp in ms after epoch instead of seconds 2022-05-25 08:39:08 -06:00
Sumner Evans 03d46630c2
backfill status event: send after room exists 2022-05-24 17:34:43 -06:00
Sumner Evans b850995888
backfill: block deferred requests on immediate and forward backfills 2022-05-24 17:34:43 -06:00
Tulir Asokan 372929f454 Fix small things 2022-05-24 14:02:06 +03:00
Tulir Asokan 1185b4bb71 Add mutex to block new messages in specific backfill cases
Specifically, when sending events using the `com.beeper.new_messages`
query param, normal new messages shouldn't be processed, as ordering
might get messed up.

3a264b77ed
2022-05-24 13:39:29 +03:00
Sumner Evans cdf97a2df3
backfill: set backfill status state event 2022-05-20 10:22:33 -06:00
Sumner Evans 4eac1ea719
backfill state: update during backfill 2022-05-20 10:22:30 -06:00
Tulir Asokan 962179fb75 Handle edge cases with missing senders in historical messages 2022-05-19 12:08:31 +03:00
Tulir Asokan f39fff3285
Send first batch of events without historical flag (#498) 2022-05-19 11:36:42 +03:00