Commit graph

83 commits

Author SHA1 Message Date
Tulir Asokan
73304cd400 Move Matrix event and command handling to mautrix-go 2022-05-22 16:15:54 +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
Sumner Evans
f3f6d88e55
backfill: perform batch finish in transaction 2022-05-15 21:43:12 -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
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
Tulir Asokan
357cb5af90 Redact recycle emoji after requesting retry 2022-05-02 15:42:35 +03:00
Tulir Asokan
4bc4e92877 Remove media backfill queue and just request immediately 2022-05-02 15:00:57 +03:00
Tulir Asokan
766e6a5130 Invite bot when user enables encryption in DM portal 2022-03-11 20:11:27 +02:00
Tulir Asokan
1eb210c249 Add support for bridging reactions 2022-03-05 21:22:31 +02:00
Tulir Asokan
dd58e8d1e7 Add '♻️' as an alternative reaction for retrying media 2022-02-10 19:46:46 +02:00
Tulir Asokan
528fbda53f Add initial support for requesting media retries from phone 2022-02-10 19:18:49 +02:00
Tulir Asokan
abdfcdc8a6 Handle incoming Matrix messages as implicit read receipts 2022-01-17 12:00:02 +02:00
Tulir Asokan
b3e0d7afbb Reject ghost user invites from non-logged-in users 2022-01-15 13:59:20 +02:00
Tulir Asokan
3d457d005e Pass event ID into CommandEvents 2022-01-07 14:39:00 +02:00
Tulir Asokan
2ce9947130 Fix double puppet marker in read receipts 2022-01-07 14:38:44 +02:00
Tulir Asokan
ce2ae44939 Check double puppet indicator value when dropping events 2021-12-17 01:56:07 +02:00
Tulir Asokan
5e2b54f97e Add constant for double puppet value 2021-12-15 13:51:20 +02:00
Sumner Evans
c15b963748
double puppeting: use fi.mau.double_puppet_source 2021-12-15 02:51:26 -07:00
Tulir Asokan
e38b0bf545 Use channel for Matrix events to prevent concurrent sending to WhatsApp 2021-12-14 17:47:30 +02:00
Tulir Asokan
3851fdcded Fix legacy EDU handling 2021-12-09 14:17:13 +02:00
Tulir Asokan
66371d0faf Update numbering of retry checkpoints 2021-12-07 16:14:56 +02:00
Tulir Asokan
0106c5ccf2 Merge remote-tracking branch 'origin/checkpoint-retry-num' 2021-12-07 16:13:48 +02:00
Tulir Asokan
1d8ef6cb89 Add support for MSC2409 2021-12-07 16:02:51 +02:00
Sumner Evans
ed2bb3ac5f
checkpoints: send retry_num 2021-12-03 17:50:55 -07:00
Tulir Asokan
6cb5301996 Re-request Megolm sessions if they don't arrive on time 2021-12-03 18:24:24 +02:00
Sumner Evans
139a0bd679
Send checkpoints using new API and send DECRYPTED step checkpoints 2021-11-18 08:46:14 -07:00
Tulir Asokan
445da09e1d Simplify reaction error notices 2021-11-09 15:26:37 +02:00
abmantis
b652281682 Send portal notice on reactions
Closes #373
2021-11-09 15:23:55 +02:00
Tulir Asokan
9994a04f79 Allow redacting through relaybot. Fixes #298 2021-11-01 16:46:03 +02:00
Tulir Asokan
c85b003fe8 Check prev_content for all leave events 2021-11-01 12:52:51 +02:00
Tulir Asokan
d24a8821c1 Ignore missing prev_content in matrix leave handler 2021-11-01 12:42:34 +02:00
Tulir Asokan
630095e28a Add support for group invite messages 2021-10-31 20:42:53 +02:00
Tulir Asokan
b1baa0a0a1 Rename relay permission level 2021-10-28 14:03:55 +03:00
Tulir Asokan
56004031df Remove legacy multi-user check in invite accepting 2021-10-28 14:01:03 +03:00
Tulir Asokan
a8b9c88707 Merge branch 'master' into multidevice 2021-10-28 14:00:10 +03:00
Justin Carlson
0063c2a804
Add support for custom management room messages (#355)
Co-authored-by: Will Hunt <willh@matrix.org>
2021-10-28 13:58:20 +03:00
Tulir Asokan
bb9a0f6528 Make relay mode more like the Signal bridge 2021-10-28 13:57:15 +03:00
Tulir Asokan
56850bb698 Initial switch to go.mau.fi/whatsmeow 2021-10-22 20:14:34 +03:00
Tulir Asokan
e926d0175e Track WhatsApp message age and processing duration 2021-06-25 15:33:46 +03:00
Tulir Asokan
06b84c4bb9 Add option to disable status bridging. Fixes #166 2021-06-01 15:28:15 +03:00
Tulir Asokan
69dd7f803a Move whatsapp-ext to go-whatsapp 2021-02-17 01:21:30 +02:00
Tulir Asokan
481af6cbe4 Fix private chat portal leave message 2021-02-11 13:19:54 +02:00
Tulir Asokan
2188dc7701 Add option to not re-sync chat info and user avatars to avoid rate limits 2021-02-09 23:41:13 +02:00
Tulir Asokan
43c7d50721 Fix incorrect error check after retrying decryption 2020-11-14 19:39:14 +02:00
Tulir Asokan
6315dac2eb Slightly improve waiting for inbound Megolm sessions 2020-10-05 22:32:35 +03:00
Tulir Asokan
d67c3a8c96 Wait up to 3 seconds for encryption keys to arrive 2020-09-24 15:25:36 +03:00
Tulir Asokan
0b2fd69bf1 Send error notice if decrypting event fails 2020-09-17 22:01:17 +03:00
Tulir Asokan
518cb076ff Add command to create WhatsApp group 2020-07-10 15:23:32 +03:00
Tulir Asokan
ffb8529b73 Allow creating private chat portal by inviting WhatsApp puppet. Fixes #110 2020-07-05 18:57:03 +03:00
Tulir Asokan
326293303d Handle WhatsApp kicks and Matrix invites 2020-06-25 23:58:35 +03:00