Commit graph

1363 commits

Author SHA1 Message Date
Tulir Asokan
57339187e5 Add message send retry on xml-not-well-formed errors 2022-05-10 13:55:33 +03:00
Tulir Asokan
9dcd8f4f96 Maybe improve retry receipt handling 2022-05-10 12:15:00 +03:00
Tulir Asokan
85d29011d1 Update whatsmeow 2022-05-10 11:39:10 +03:00
Tulir Asokan
7a3241161b Log warning if server doesn't advertise Matrix 1.1+ support 2022-05-10 11:33:14 +03:00
Tulir Asokan
3f6fc27095 Remove GroupingKey from reactions as WhatsApp doesn't seem to use it 2022-05-07 11:25:16 +03:00
Tulir Asokan
380ca00c34 Update whatsmeow 2022-05-05 12:22:42 +03:00
Tulir Asokan
6f5fee5d37 Include main device platform in ping and login APIs 2022-05-04 19:47:36 +03:00
Tulir Asokan
625e110aab Improve logging when phone is seen again 2022-05-04 11:17:34 +03:00
Tulir Asokan
7c579ad972 Update whatsmeow for new xml-not-well-formed debugging 2022-05-03 15:35:02 +03:00
Tulir Asokan
289d410a4b Use consistent error message for media not found errors
Sometimes it's encrypted, sometimes it's not
2022-05-02 16:50:15 +03:00
Tulir Asokan
fdb0718670 Remove unused media backfill config 2022-05-02 16:36:07 +03:00
Tulir Asokan
317b4dbffb Fix panic in requesting retries 2022-05-02 15:47:35 +03:00
Tulir Asokan
a3810c1414 Update whatsmeow 2022-05-02 15:43:51 +03:00
Tulir Asokan
357cb5af90 Redact recycle emoji after requesting retry 2022-05-02 15:42:35 +03:00
Tulir Asokan
0665c74cce Merge incoming receipt and message channels
Otherwise receipts after downtime might be handled before the messages
those receipts point at.
2022-05-02 15:35:50 +03:00
Tulir Asokan
bf2eb84abb Update error message if media retry fails 2022-05-02 15:29:02 +03:00
Tulir Asokan
4bc4e92877 Remove media backfill queue and just request immediately 2022-05-02 15:00:57 +03:00
Sumner Evans
2abbf160a7
Merge pull request #486 from mautrix/sumner/bri-3092
backfill: add notification of disappearing messages at correct timestamp
2022-04-30 01:08:36 -06:00
Sumner Evans
3096786454
backfill queue: interrupt sending to deferred channel on queue re-check
If a queue re-check is requested, interrupt sending the backfill request
to the deferred channel so that immediate backfills can happen ASAP.
2022-04-30 01:03:55 -06:00
Sumner Evans
89131bd20c
backfill: add notification of disappearing messages at correct timestamp
This makes it so that the timestamp of the chat in Matrix looks correct,
even though the message is not there to be bridged since it has
disappeared.
2022-04-29 16:59:37 -06:00
Tulir Asokan
8b39175b76 Drop support for appservice login with unstable prefix 2022-04-29 22:04:28 +03:00
Tulir Asokan
4c0d43fee7 Update whatsmeow 2022-04-29 19:40:15 +03:00
Tulir Asokan
4b22e786f5 Make signal store retry if postgres dies 2022-04-29 19:38:44 +03:00
Tulir Asokan
b8e7c17d5c Merge branch 'split-forward-backfill' 2022-04-29 17:30:09 +03:00
Tulir Asokan
573eec44c8 Fix indentation in SQL query 2022-04-29 17:03:27 +03:00
Tulir Asokan
7a4de157ce Update mautrix-go and changelog 2022-04-29 16:10:03 +03:00
Tulir Asokan
331138bc6b Split forward backfilling and do it in one batch
Multiple batches is complicated, as it would require figuring out where
the batch ended when handling the next batch of new-old messages.
2022-04-29 11:07:05 +03:00
Tulir Asokan
6b69ea707b Use single SQL query for fetching backfill queue items 2022-04-29 10:44:22 +03:00
Sumner Evans
86840dec59
Merge pull request #484 from mautrix/sumner/bri-3057
backfill: fixed bug where the media backfill loop would sleep too often
2022-04-28 15:52:38 -06:00
Sumner Evans
76c6d0bf87
backfill: fixed bug where the media backfill loop would sleep too often
If the number of requested message was a multiple of the number of batch
events, then it would sleep on every single other message (even if not
an errored media message).
2022-04-28 15:48:40 -06:00
Sumner Evans
d898aefff1
backfill loops: combine immediate and deferred loops 2022-04-28 15:48:38 -06:00
Sumner Evans
ac7a437ad8
backfill: add more logging to the queue 2022-04-28 15:48:04 -06:00
Tulir Asokan
66f505303d Update 403 error message
Apparently it happens when switching phones, not only when banned
2022-04-28 20:09:44 +03:00
Tulir Asokan
387148849a Update mautrix-go again 2022-04-27 23:48:55 +03:00
Sumner Evans
2259b5007f
Merge pull request #483 from mautrix/sumner/bri-3038
backfill: skip chats if the user is not a participant
2022-04-27 08:32:35 -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
0b036204ca Update dependencies and reduce memory usage when encryping files 2022-04-27 14:31:57 +03:00
Tulir Asokan
54ad27f644 Add separate config option for status broadcast room tag 2022-04-27 12:46:11 +03:00
Sumner Evans
2afdf80937
backfill: don't create room if the user is not a participant
This can happen if the user gets kicked from a chat.
2022-04-26 12:10:30 -06:00
Sumner Evans
5aee338561
Merge pull request #481 from mautrix/fix-backfill-priority-again
backfill: fix priority of backfills again
2022-04-25 08:42:43 -06:00
Tulir Asokan
ea3bcec1cf Add option to maybe detect xml-not-well-formed errors 2022-04-25 17:21:43 +03:00
Tulir Asokan
30fd0d7c85 Update whatsmeow 2022-04-25 11:17:30 +03:00
Sumner Evans
f32c5f2e9a
backfill: fix priority of backfills again
I think this finally has the correct logic for doing each stage for each
portal before going on to the next stage.
2022-04-23 21:50:47 -06:00
Sumner Evans
0fab7ba4bb
Merge pull request #480 from mautrix/sumner/bri-2883
backfill: fix bridging of ephemeral and view-once messages
2022-04-22 15:23:02 -06:00
Sumner Evans
a1e2e673dc
backfill: fix bridging of ephemeral and view-once messages 2022-04-22 14:07:59 -06:00
Sumner Evans
7772b7e15c
Merge pull request #479 from mautrix/fix-media-fail-error
improve error when media is not present on WA servers
2022-04-22 11:52:36 -06:00
Sumner Evans
159ece3e64
improve error when media is not present on WA servers 2022-04-22 11:49:50 -06:00
Tulir Asokan
3f8d6942d2 Store disappearing timer when creating portal 2022-04-22 16:45:30 +03:00
Tulir Asokan
82472a76df Add queue for bridge state updates 2022-04-22 13:26:37 +03:00
Tulir Asokan
2f91b225e2 Update mautrix-go to prevent unnecessary displayname requests 2022-04-22 13:20:46 +03:00