Commit graph

1193 commits

Author SHA1 Message Date
Tulir Asokan
3cafd59cf7 Handle key missing errors when syncing app state 2022-05-16 11:43:09 +03:00
Tulir Asokan
66a00570b4 Update changelog 2022-05-16 11:28:53 +03:00
Tulir Asokan
3ee7c8527a Send a valid request when doing hacky phone pings 2022-05-16 11:22:41 +03:00
Sumner Evans
f3f6d88e55
backfill: perform batch finish in transaction 2022-05-15 21:43:12 -06:00
Sumner Evans
c1bf0e6555
backfill queue: set the dispatch time instead of completed time 2022-05-15 21:42:42 -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
1d70cbff48
backfill queue: add dispatch time, remove time end to table
* the dispatch time is going to be what the completed time used to be
* the time end column was always nil, so I got rid of it
2022-05-15 21:42:38 -06:00
Tulir Asokan
0ed0f61ced Add command to change disappearing timer 2022-05-15 14:01:23 +03:00
Tulir Asokan
b6ec252fcd Add support for weird user ID templates when generating registration
Fixes #492
2022-05-15 11:35:18 +03:00
Tulir Asokan
a4f57d175c Update dependencies and changelog 2022-05-15 11:12:31 +03:00
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