Commit graph

104 commits

Author SHA1 Message Date
Tulir Asokan
c72610f3f0 Fix handling new messages during initial portal backfill 2020-05-28 20:35:43 +03:00
Tulir Asokan
46e53eca4d Fix bridging messages to WhatsApp with relaybot. Fixes #191 2020-05-25 23:11:00 +03:00
Tulir Asokan
c6b4f34c28 Add option to send read receipt on confirmed delivery to WhatsApp 2020-05-25 11:17:47 +03:00
Tulir Asokan
aa0a4d3eea Call LoadMediaInfo and retry if media download fails with 404/410 2020-05-24 17:46:19 +03:00
Tulir Asokan
5a62982a56 Add option to query message from phone when send times out 2020-05-24 17:28:30 +03:00
Tulir Asokan
c909a85fc7 Re-add sending bridging failure messages 2020-05-24 15:44:20 +03:00
Tulir Asokan
91bb38eaa3 Wait for response even after message send timeout 2020-05-24 15:33:26 +03:00
Tulir Asokan
4f09835b81 Fix sending captions to Matrix 2020-05-22 17:13:23 +03:00
Tulir Asokan
e4bc254a65 Change incoming call notices back to m.text 2020-05-21 20:14:43 +03:00
Tulir Asokan
e08676079a Fix bridging encrypted media from Matrix 2020-05-20 16:45:21 +03:00
Tulir Asokan
a770263d86 Encrypt media bridging error notices 2020-05-12 23:38:01 +03:00
Tulir Asokan
1c3de877db Maybe support e2be by default and fix some bugs 2020-05-12 22:25:55 +03:00
Tulir Asokan
6e50a7c380 Switch appservice module location 2020-05-09 20:08:05 +03:00
Tulir Asokan
f89fcf7212 Make no-cgo build work without source changes 2020-05-09 02:08:23 +03:00
Tulir Asokan
baae66ed04 Add basic end-to-bridge encryption support
Still missing persisting sync tokens and crypto state in DB
2020-05-09 02:04:01 +03:00
Tulir Asokan
acc25a02e4 Update mautrix-go 2020-05-08 22:32:22 +03:00
Peter Roberts
973afcdd26 portal: bridge notices 2020-04-12 10:38:44 +03:00
rafaeltheraven
6d806227c7 Actually removed instead of commenting out :P 2020-01-09 10:46:45 +01:00
rafaeltheraven
c8e5c06a57 Removed strange workaround, fixing #134 2020-01-09 10:41:45 +01:00
Tulir Asokan
302fae6649 Bypass mautrix.Content's MarshalJSON. Fixes #132 2020-01-07 22:27:37 +02:00
Tulir Asokan
8c3807a16d Add puppet to personal filtering community when adding portal 2020-01-07 21:40:51 +02:00
Tulir Asokan
e4ddc43007
Merge pull request #118 from 14mRh4X0r/support-go-1-11
Replace ReplaceAll(…) with Replace(…, -1)
2019-12-31 21:26:31 +02:00
Tulir Asokan
e056459ab4 Add/fix sticker bridging in both directions
* Matrix stickers are sent as images
* WhatsApp stickers were missing the incoming event handler

Fixes #124
Fixes #127
Closes #126
Closes #129

Co-authored-by: rafaeltheraven <rafael.dulfer@gmail.com>
2019-12-31 20:22:04 +02:00
Willem Mulder
041c257e7a Replace ReplaceAll(…) with Replace(…, -1)
This allows people to build the bridge with Go 1.11, the current version
in Debian stable.
2019-12-02 22:52:40 +01:00
Tulir Asokan
bb1d28c755 Fix typo 2019-11-13 09:40:41 +02:00
Tulir Asokan
14f039f5a4 Don't drop messages even if database says authenticated user is not in chat 2019-11-13 09:36:43 +02:00
Tulir Asokan
3caca1b9a0 Fix NeedsRelaybot check for groups too 2019-11-11 22:41:58 +02:00
Tulir Asokan
03d42640fe Add basic relaybot support. Fixes #20 2019-11-10 21:22:11 +02:00
Nicolas Werner
fc4098d3e4 Receive stickers from whatsapp
We need to convert them to png, otherwise synapse has trouble
thumbnailing them. Also the default webp decoder can't decode WhatsApp
stickers, so we use the chai2010 decoder.
2019-10-05 02:39:55 +02:00
Tulir Asokan
fb826601d8 Fix bridging media when whatsapp sends wrong mime type 2019-08-31 00:32:51 +03:00
Tulir Asokan
d91f705e95 Fix most unexpected logout bugs, handle connection-in-progress states better and send warning message if sending to whatsapp times out 2019-08-30 22:04:57 +03:00
Tulir Asokan
c4d2b04e67 Fix misleading connection error message in private chat portals 2019-08-30 21:37:12 +03:00
Tulir Asokan
5af374e6b0 Fix bridging error messages in private chats 2019-08-30 21:32:29 +03:00
Tulir Asokan
85d57d52bb Log better error when parsing message fails 2019-08-25 19:41:53 +03:00
Tulir Asokan
f28322d1f7 Send error message if downloading media from WhatsApp fails 2019-08-24 23:08:45 +03:00
Tulir Asokan
07d43c4825 Send call notifications as notices. Fixes #82 2019-08-24 22:40:09 +03:00
Tulir Asokan
eb3595bd39 Add newly created portals to personal filtering community 2019-08-10 15:44:05 +03:00
progserega
92958343dd Add option to allow inviting other users in portal rooms (#77)
This doesn't mean the invited users get bridged, but for some use cases that doesn't matter
2019-07-16 12:16:17 +03:00
Tulir Asokan
2023f55f32 Recover from panics in event handlers 2019-06-18 08:24:17 +03:00
Tulir Asokan
5be78dd978 Fix the crash in #69 2019-06-13 21:30:38 +03:00
Tulir Asokan
e124641107 Add option to set private chat portal rooms' name/avatar explicitly 2019-06-01 20:03:29 +03:00
Tulir Asokan
9fa0ad923d Fix potential nil pointer crash 2019-06-01 19:20:06 +03:00
Tulir Asokan
1285aa4327 Fix fetching more than one chunk of initial history 2019-05-31 22:30:57 +03:00
Tulir Asokan
a40584db41 Add command to delete all own portals for a fresh start 2019-05-31 19:33:18 +03:00
Tulir Asokan
37cd34e4bf Make contact wait delay configurable and fix nil pointer usage 2019-05-30 20:25:04 +03:00
Tulir Asokan
02f78155b5 Only invite default puppet for backfilling when needed 2019-05-30 17:48:22 +03:00
Tulir Asokan
521a8b74aa Share backfill start/end code between initial and recovery fills 2019-05-30 17:25:56 +03:00
Tulir Asokan
c4751f4953 Use default puppet when backfilling to avoid rate limits 2019-05-30 17:22:03 +03:00
Tulir Asokan
a9fd97932b Send alerts about incoming calls 2019-05-30 17:00:36 +03:00
Tulir Asokan
1c009b96fe Only load 50 messages per request in initial fill 2019-05-28 21:48:37 +03:00