Commit graph

1283 commits

Author SHA1 Message Date
Tulir Asokan
78fe69a578 Move media 404 error logs to debug level 2022-05-14 14:28:55 +03:00
Tulir Asokan
5f82ead5b7 Short-circuit resolveIdentifier if the input looks like an email 2022-05-14 14:26:36 +03:00
Tulir Asokan
f74af8eb30 Update whatsmeow and improve history sync logging 2022-05-14 14:17:03 +03:00
Tulir Asokan
6f14475667 Switch to ParseWebMessage from whatsmeow 2022-05-13 16:08:33 +03:00
Tulir Asokan
c00f74af3b Sync push name on message if it got dropped before somehow 2022-05-13 11:34:51 +03:00
Tulir Asokan
1f6cedf948 Reduce unnecessary invite calls during history sync 2022-05-13 11:19:52 +03:00
Tulir Asokan
c7b0f98f97 Fix scanning null values in timezone column 2022-05-12 20:51:37 +03:00
Sumner Evans
8cb41b8949
Merge pull request #490 from mautrix/sumner/bri-3238
media backfill: allow media requests to be performed at a specific local time for the user
2022-05-12 11:31:54 -06:00
Sumner Evans
b42aa16684
media backfill: store media key in request
This way, we don't have to fetch the event from Matrix in these situations
2022-05-12 11:30:42 -06:00
Tulir Asokan
4a5fbcb13a Fix disappearing message notice spam when backfilling 2022-05-12 20:00:31 +03:00
Sumner Evans
d686912c74
provisioning: only update timezone after login success 2022-05-12 08:56:00 -06:00
Tulir Asokan
9ac8ae984d Always set power level required for reactions and redactions to 0 2022-05-12 10:45:23 +03:00
Sumner Evans
08e77fab29
media backfill: send retry requests at the configured time
Only does the batch send of requests if the request method is 'local_time'
2022-05-11 17:10:55 -06:00
Sumner Evans
7de7fedc02
media backfill: enable enqueue to media backfill buffer instead of immediately requesting retry receipt 2022-05-11 17:10:55 -06:00
Sumner Evans
b5551ee16a
database: add media requests buffer table 2022-05-11 17:10:55 -06:00
Sumner Evans
e362743f18
config: add settings for automatic media requests 2022-05-11 17:10:55 -06:00
Tulir Asokan
feaaf51970 Update changelog and whatsmeow again 2022-05-11 14:33:19 +03:00
Tulir Asokan
8ff1896b18 Update whatsmeow and add bridge state events for keepalive timeouts 2022-05-11 14:04:59 +03:00
Tulir Asokan
dd2919fbdb Fix deduplicating bridge states 2022-05-10 22:16:05 +03:00
Tulir Asokan
8e2579936f Fix sending media 2022-05-10 14:47:45 +03:00
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