Commit Graph
100 Commits
Author SHA1 Message Date
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
Tulir Asokan f70b7663d2 Bump version to v0.1.0 2020-06-03 21:02:53 +03:00
Tulir Asokan 3f35a90145 Send plain version number to WhatsApp 2020-06-03 20:59:44 +03:00
Tulir Asokan 4b23ca9ff2 Fix getting commit SHA in CI 2020-06-03 20:49:26 +03:00
Tulir Asokan 0f7163a294 Don't require config for --version 2020-06-03 20:47:13 +03:00
Tulir Asokan f3793309a0 Fix +dev suffix in version 2020-06-03 20:44:52 +03:00
Tulir Asokan 09385713de Include commit information in CI builds. Fixes #158 2020-06-03 20:32:53 +03:00
Tulir Asokan 7b75d763ed Update mautrix-go 2020-06-03 19:49:57 +03:00
Tulir Asokan f1b50a22f3 Add bridge info state events for new portal rooms 2020-06-01 15:09:58 +03:00
Tulir Asokan 7947ba616c Hide reconnected successfully message if report_connection_retry is false 2020-05-29 21:06:25 +03:00
Tulir Asokan e2261b80b6 Include whatsapp user ID in provisioning API ping response 2020-05-28 20:59:36 +03:00
Tulir Asokan c72610f3f0 Fix handling new messages during initial portal backfill 2020-05-28 20:35:43 +03:00
Tulir Asokan 7cf19b0908 Auto-create management room if needed when sending notices 2020-05-27 12:16:05 +03:00
Tulir Asokan 91db286208 Update mautrix-go 2020-05-26 17:51:20 +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 2857b57c8e Use strings.Fields instead of manually removing spaces 2020-05-24 19:03:57 +03:00
Tulir Asokan d625ad0066 Update go-whatsapp 2020-05-24 17:47:05 +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 bb883e1262 Ignore multiple spaces in commands 2020-05-24 17:03:50 +03:00
Tulir Asokan 9dfd9c88b2 Merge remote-tracking branch 'Dekedro/master' 2020-05-24 16:57:51 +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 dfdd4e6bca Fix typo 2020-05-24 14:15:22 +03:00
Tulir Asokan 9526d61489 Add static build for other architectures (ref #187) 2020-05-24 11:59:38 +03:00
Tulir Asokan 3d92a98891 Fix sorting list output 2020-05-24 00:11:56 +03:00
Tulir Asokan abffc0b54c Fix default page number in list command 2020-05-23 23:52:05 +03:00
Tulir Asokan ba4aaa8f52 Add missing commands to help 2020-05-23 23:25:22 +03:00
Tulir Asokan 2353924456 Paginate output of list command
Fixes #147
Closes #148
2020-05-23 23:17:45 +03:00
Tulir Asokan 4f09835b81 Fix sending captions to Matrix 2020-05-22 17:13:23 +03:00
Tulir Asokan b4949eec59 Add missing crypto != nil checks 2020-05-21 21:56:46 +03:00
Tulir Asokan 8bb5407f98 Merge branch 'e2be' 2020-05-21 20:58:57 +03:00
Tulir Asokan ed978bcb9c Don't use different types for SQLite in DB schema 2020-05-21 20:56:41 +03:00
Tulir Asokan 64af0209b7 Suggest delete-session when trying to logout without connection. Fixes #98 2020-05-21 20:50:54 +03:00
Tulir Asokan e4bc254a65 Change incoming call notices back to m.text 2020-05-21 20:14:43 +03:00
Tulir Asokan c0fc06b410 Allow using custom puppet for backfilling 2020-05-21 20:00:00 +03:00
Tulir Asokan 9002bf62ed Fix needing to reconnect after initial login 2020-05-21 19:49:01 +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 562754bc77 Update go.sum 2020-05-12 23:34:51 +03:00
Tulir Asokan fc6f8df4d3 Fix replacing outbound group session in db 2020-05-12 23:33:59 +03:00
Tulir Asokan c9adb3aba3 Store outbound group sessions in database 2020-05-12 23:16:33 +03:00
Tulir Asokan 1c3de877db Maybe support e2be by default and fix some bugs 2020-05-12 22:25:55 +03:00
Tulir Asokan db5c1a3f61 Make sure user gets invited to portal when using open command 2020-05-12 20:30:38 +03:00
Tulir Asokan 168a6ff93f Fix static build 2020-05-09 20:25:48 +03:00
Tulir Asokan ea23907492 Fix some bugs with db crypto store 2020-05-09 20:23:30 +03:00
Tulir Asokan dfc5722a80 Move crypto store to main database 2020-05-09 20:08:05 +03:00
Tulir Asokan 6e50a7c380 Switch appservice module location 2020-05-09 20:08:05 +03:00
Tulir Asokan e7458139c4 Update deps 2020-05-09 02:14:12 +03:00
Tulir Asokan 0a77e25cda Add static build to CI 2020-05-09 02:11:16 +03:00
Tulir Asokan f89fcf7212 Make no-cgo build work without source changes 2020-05-09 02:08:23 +03:00