Commit Graph
100 Commits
Author SHA1 Message Date
Tulir Asokan 0329dd5e62 Update mautrix-go to fix errors.Is 2020-10-12 18:24:36 +03:00
Tulir Asokan cd8352a7df Remove webp conversion 2020-10-09 18:24:29 +03:00
Tulir Asokan 36bb15fbd6 Handle cases where sync response handling takes too long 2020-10-06 22:22:04 +03:00
Tulir Asokan 18f709f435 Add some more logs in bridge bot syncing 2020-10-06 21:39:35 +03:00
Tulir Asokan 491d8b232e Stop using github.com/pkg/errors 2020-10-05 22:38:34 +03:00
Tulir Asokan 6315dac2eb Slightly improve waiting for inbound Megolm sessions 2020-10-05 22:32:35 +03:00
Tulir Asokan 0f17863708 Add command to reset the megolm session in a room 2020-10-05 22:32:15 +03:00
Tulir Asokan f21f57f09f Fix delete-session not deleting all cached state 2020-10-04 13:55:09 +03:00
Tulir Asokan 1379e46e1e Update mautrix-go 2020-10-02 01:13:26 +03:00
Tulir Asokan 3afe65726d Update mautrix-go 2020-09-29 11:17:48 +03:00
Tulir Asokan 3dae9b1999 Add connection state to prometheus metrics 2020-09-27 22:30:08 +03:00
Tulir Asokan f88abe98bf Skip key sharing IsInPortal check if user is admin 2020-09-25 21:33:55 +03:00
Tulir Asokan 34163859f0 Fix no-crypto build 2020-09-24 15:49:13 +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 4b3c411f2f Ping again if stream goes to sleep soon after connection 2020-09-17 18:48:37 +03:00
Tulir Asokan 01101c1272 Move .github metadata to common repo 2020-09-09 01:20:25 +03:00
Tulir Asokan 075689dacf Update go-whatsapp and rename device name config fields 2020-09-04 17:54:59 +03:00
Tulir Asokan 1edf8bb9e1 Bump version to v0.1.4 2020-09-04 17:53:53 +03:00
Tulir Asokan 2638204eaa Add option to update m.direct with double puppeting 2020-08-22 13:07:55 +03:00
Tulir Asokan b1c947da99 Remove deploy step in CI 2020-08-18 12:05:32 +03:00
Tulir Asokan 0096662685 Add missing arg to dockerfile 2020-08-18 11:54:11 +03:00
Tulir Asokan b2d64819f6 Merge pull request #218 from kubesail/master
add bash jq yq to CI dockerfile
2020-08-18 00:49:47 +03:00
Tulir Asokan f92bfe8eba Merge pull request #217 from kubesail/master
add jq / yq
2020-08-16 00:51:37 +03:00
Tulir Asokan 7c67fe75eb Move post-connection ping to after chat list times out 2020-08-05 22:06:54 +03:00
Tulir Asokan aefe63cba5 Add support for automatic key sharing 2020-08-05 14:58:46 +03:00
Tulir Asokan 05da509c7c Add build tags for disabling crypto independently of cgo 2020-08-02 13:55:02 +03:00
Tulir Asokan 1b1d5d9a74 Fix bug in HTML parser 2020-08-01 02:00:51 +03:00
Tulir Asokan 9671b6c39a Use MentionedJIDs metadata instead of assuming everything is a mention 2020-07-31 14:30:58 +03:00
Tulir Asokan 6cb55f3969 Fix bugs in db migration. Fixes #211 2020-07-30 21:41:04 +03:00
Tulir Asokan dd8b5097cb Support both WhatsApp read receipt event types 2020-07-30 18:28:47 +03:00
Tulir Asokan 25a99c4464 Bridge own read receipts from WhatsApp mobile with double puppeting 2020-07-30 18:08:26 +03:00
Tulir Asokan 51f0be415b Disconnect and reconnect automatically if post-login ping fails 2020-07-28 15:58:36 +03:00
Tulir Asokan 31049cd4d5 Call AdminTest() right after connecting 2020-07-27 13:06:03 +03:00
Tulir Asokan ded9e31315 Add simple method for sending bridge notices 2020-07-27 13:05:42 +03:00
Tulir Asokan 1aca93f250 Remove http.ListenAndServe in wrong place 2020-07-27 13:02:55 +03:00
Tulir Asokan 0430446d6d Make message buffers bigger and make locking message handling less hacky 2020-07-23 20:10:21 +03:00
Tulir Asokan f86f06a403 Check connection to homeserver before trying to log in for e2be 2020-07-23 19:18:24 +03:00
Tulir Asokan 3e7853f125 Send errors for more types of media bridge errors 2020-07-21 16:08:54 +03:00
Tulir Asokan acdd555917 Change nova build trigger to master branch 2020-07-16 21:08:35 +03:00
Tulir Asokan 9ac7544b64 Fix handling contact messages 2020-07-16 21:08:20 +03:00
Tulir Asokan f3728024b0 Add needs definitions and nova build trigger to CI 2020-07-14 23:22:52 +03:00
Tulir Asokan b1fd0be345 Update mautrix-go to fix static build 2020-07-10 16:35:38 +03:00
Tulir Asokan b7275a763a Make bridging receipts togglable separately from presence 2020-07-10 16:26:55 +03:00
Tulir Asokan f40a91594d Update mautrix-go 2020-07-10 15:56:45 +03:00
Tulir Asokan 8bacbbac5b Bump version to v0.1.3 2020-07-10 15:24:29 +03:00
Tulir Asokan 518cb076ff Add command to create WhatsApp group 2020-07-10 15:23:32 +03:00
Tulir Asokan 7eb4cfb946 Add command to disable bridging presence and read receipts 2020-07-10 14:53:18 +03:00
Tulir Asokan 4a673b92fa Kick left users when syncing members 2020-07-05 23:16:59 +03:00
Tulir Asokan 07927741bf Linkify already existing portal error message in pm command 2020-07-05 19:41:28 +03:00
Tulir Asokan 7dc4632cd4 Create new portal if invite fails in pm command. Fixes #188 2020-07-05 19:27:40 +03:00
Tulir Asokan 8f805c539a Fix backfill in private chat portal with self 2020-07-05 19:24:48 +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 b7cd2c7f2a Update ROADMAP.md 2020-07-04 16:29:07 +03:00
Tulir Asokan 097dda4ce0 Bump version to v0.1.2 2020-07-04 16:22:23 +03:00
Tulir Asokan 4608c09656 Escape % in battery low warning. Fixes #205 2020-07-04 16:21:41 +03:00
Tulir Asokan 43a3815970 Fix some things related to m.bridge 2020-07-03 13:47:02 +03:00
Tulir Asokan d9874ab1b4 Improve low battery warning 2020-06-30 17:21:17 +03:00
Tulir Asokan 44b399790b Fix replies in encrypted rooms 2020-06-30 16:26:13 +03:00
Tulir Asokan 5a611146cb Update go-whatsapp to improve some errors 2020-06-26 00:37:17 +03:00
Tulir Asokan 2132bc653b Handle WhatsApp chat create events 2020-06-26 00:13:18 +03:00
Tulir Asokan 8cfb04a5ed Handle WhatsApp invites. Fixes #120 2020-06-26 00:13:03 +03:00
Tulir Asokan 326293303d Handle WhatsApp kicks and Matrix invites 2020-06-25 23:58:35 +03:00
Tulir Asokan fed6756ae5 Handle leaving and kicking from Matrix. Fixes #47 2020-06-25 23:33:11 +03:00
Tulir Asokan 3a571b2c7a Add command to join groups with invite link 2020-06-25 23:29:25 +03:00
Tulir Asokan 67864d8475 Make command system work better in private chat portals 2020-06-25 22:42:52 +03:00
Tulir Asokan 09a08a9ef4 Add command to get group invite link 2020-06-25 22:40:34 +03:00
Tulir Asokan 3460d7b6e8 Make WhatsApp device name configurable 2020-06-25 17:59:44 +03:00
Tulir Asokan d0ccc85522 Actually log errors when accepting invite fails. Fixes #143 2020-06-25 17:01:40 +03:00
Tulir Asokan f4ce80f98e Handle contact and battery events 2020-06-25 16:44:51 +03:00
Tulir Asokan d4e812b968 Update mautrix-go 2020-06-24 00:31:50 +03:00
Tulir Asokan 542d30ead7 Use SQLCryptoStore from mautrix-go and update deps 2020-06-23 23:22:44 +03:00
Tulir Asokan cbd1a79e80 Ignore some types of message parse errors 2020-06-23 19:03:20 +03:00
Tulir Asokan c541afbb46 Update go-whatsapp again 2020-06-23 19:01:11 +03:00
Tulir Asokan 50132ae274 Add ffmpeg to Docker image 2020-06-23 16:40:05 +03:00
Tulir Asokan 3fe9289f91 Add support for Matrix->WhatsApp GIF bridging. Fixes #141 2020-06-23 16:37:13 +03:00
Tulir Asokan 63a1a77f26 Update go-whatsapp to handle unknown ping responses 2020-06-23 15:36:08 +03:00
Tulir Asokan 58de73f8b2 Update mautrix-go 2020-06-23 14:52:32 +03:00
Tulir Asokan c922d7e569 Add FUNDING.yml 2020-06-22 12:43:25 +03:00
Tulir Asokan 5a04f6c871 Add simple disconnection count to metrics 2020-06-22 12:43:25 +03:00
Tulir Asokan 689202f43d Move HandleMediaMessage parameters to a struct 2020-06-20 22:24:27 +03:00
Tulir Asokan bd9464add3 Merge pull request #201 from lieuwex/document-whatsapp-filename
Use WhatsApp document filename for document type files
2020-06-20 22:07:33 +03:00
Tulir Asokan 9d6b9a901d Call EncryptMegolmEvent with pointer to content 2020-06-18 12:57:55 +03:00
Tulir Asokanandhaywo beed19fdad Add Prometheus metrics
Closes #197

Co-authored-by: haywo <haywo@nct08.de>
2020-06-17 17:50:06 +03:00
Tulir Asokan 8e30262275 Fix sending updated bridge info 2020-06-15 20:39:16 +03:00
Tulir Asokan 59e2015fa7 Add option to resend bridge info to all portals 2020-06-15 20:28:04 +03:00
Tulir Asokan 8bcf81879d Add connect as alias to reconnect command 2020-06-15 19:00:29 +03:00
Tulir Asokan ec86259a20 Update bridge info when portal metadata changes 2020-06-15 14:56:52 +03:00
Tulir Asokan b8de8544e1 Add state key to m.bridge events 2020-06-11 14:41:45 +03:00
Tulir Asokan 47a1d7f6cb Generate AS registrations with bot sync workaround
Looks like synapse isn't going to be fixed soon (matrix-org/synapse#5758),
so this changes all registrations to be generated using the workaround:
the sender_localpart is set to a random string and the actual AS bot is
added as another namespace.
2020-06-11 14:39:19 +03:00
Tulir Asokan 7c799f1faa Encrypt media from WhatsApp when sending to encrypted portal 2020-06-10 15:26:14 +03:00
Tulir Asokan 210b1caf65 Add bridging of location messages to Matrix 2020-06-10 14:58:57 +03:00
Tulir Asokan e4a160e650 Add basic bridging of contact messages to Matrix 2020-06-10 14:06:36 +03:00
Tulir Asokan 934f98119f Add option to disable notifications during initial backfill 2020-06-08 20:51:24 +03:00
Tulir Asokan c6180660c2 Fix normal dockerfile 2020-06-07 21:20:57 +03:00
Tulir Asokan 535efcc8bd Send "delivery" receipt for messages bridged from WhatsApp too 2020-06-05 17:54:09 +03:00
Tulir Asokan 93b758b026 Bump version to v0.1.1 2020-06-04 18:39:30 +03:00
Tulir Asokan aea84c9907 Update mautrix-go to fix new OTK generation for e2be 2020-06-04 18:39:11 +03:00
Tulir Asokan b88b02ace3 Add missing v to version command output 2020-06-04 01:34:50 +03:00
Tulir Asokan f36e4e44fe Fix CI docker manifest stage for tags 2020-06-03 21:11:48 +03:00