Merge upstream #1

Merged
tilera merged 95 commits from MirrorHub/mautrix-whatsapp:master into master 2024-02-09 20:53:04 +01:00

95 commits

Author SHA1 Message Date
Tulir Asokan 4efb226045 Remove sync.OnceFunc usage. Fixes #679 2023-12-28 17:13:16 +01:00
Tulir Asokan cb6afe2e82 Update actions and run on both supported Go versions
[skip cd]
2023-12-28 17:03:21 +01:00
Sumner Evans 7b3990dab9
pre-commit: ban Msgf() from zerolog
Signed-off-by: Sumner Evans <sumner@beeper.com>
2023-12-23 18:10:52 -07:00
Toni Spets a1f1c91be1 Prevent creating portals for non-backfillable conversations
Defer initializing portal on backfill until there are messages.
2023-12-19 14:57:10 +02:00
Tulir Asokan 687a90b7b2 Bump version to v0.10.5 2023-12-16 23:41:47 +02:00
Tulir Asokan 6097735b3c Add word to error message 2023-12-15 14:36:18 +02:00
Tulir Asokan 19f6f8c896 Update changelog 2023-12-13 20:41:36 +02:00
Tulir Asokan b752bb9c15 Update whatsmeow 2023-12-13 20:30:36 +02:00
Tulir Asokan 3e29c51c06 Add missing nil check 2023-12-13 20:30:32 +02:00
Tulir Asokan e780eb2eb6 Update Docker image to Alpine 3.19 2023-12-13 20:30:32 +02:00
Tulir Asokan 345288bf0a Add icon for IDEA 2023-12-13 20:30:32 +02:00
Toni Spets 2589049f14 Compress portal event channels into one
Use a single channel of pointers to pre-allocate less memory per
portal.
2023-12-06 12:48:59 +02:00
Toni Spets 4e6e486e19 Expose debug API with pprof
Runs along the provisioning API with same authentication.
2023-12-05 11:35:22 +02:00
Tulir Asokan 6c983176bd Update dependencies 2023-11-27 20:00:01 +02:00
Tulir Asokan a8d1900203 Add support for sending media to newsletters 2023-11-19 14:51:30 +02:00
Tulir Asokan f6270d6bd2 Bump version to v0.10.4 2023-11-16 23:34:04 +02:00
Tulir Asokan 178010a765 Update dependencies 2023-11-16 23:33:56 +02:00
Tulir Asokan 71ab396c7a Add timeout for sending reactions and redactions 2023-11-14 16:45:55 +02:00
Tulir Asokan 0c18f065aa Update changelog
[skip cd]
2023-11-12 16:26:41 +02:00
Tulir Asokan f1a38dddf3 Update dependencies 2023-11-12 16:20:54 +02:00
Tulir Asokan 2767819ae0 Check that relaybot is logged in before relaying messages 2023-11-12 16:17:13 +02:00
Tulir Asokan 5ffb20b85b Update gitignore 2023-11-12 16:16:48 +02:00
Tulir Asokan 1d9d516b78 Add support for newsletters in join and open commands 2023-10-18 14:21:30 +03:00
Tulir Asokan e94f611002 Give room admin permission to newsletter admins 2023-10-18 13:59:43 +03:00
Tulir Asokan c02e657d22 Remove old config copy line
[skip cd]
2023-10-16 20:24:41 +03:00
Tulir Asokan a112a7f141 Bump version to v0.10.3 2023-10-16 13:27:11 +03:00
Tulir Asokan 56ff4e1595 Update dependencies 2023-10-16 13:22:56 +03:00
Tulir Asokan 7e25e2c2da Fix legacy backfill not checking if conversations have messages
Fixes #631
2023-10-16 13:09:37 +03:00
Tulir Asokan d80f2fb2ce Update changelog 2023-10-13 18:20:31 +03:00
Tulir Asokan 6feebd827b Add basic newsletter support. Fixes #655 2023-10-13 18:10:26 +03:00
Tulir Asokan 246587b616 Switch to fork of chai2010/webp 2023-10-09 12:41:08 +03:00
Tulir Asokan 9cb0a2e43d Add default mime type if it's missing 2023-10-09 12:10:34 +03:00
Tulir Asokan d2110f6ee7 Allow sending analytics to custom server 2023-09-29 14:27:38 +03:00
Tulir Asokan e1edb644c0 Add support for sending Beeper galleries 2023-09-26 21:08:54 +03:00
Tulir Asokan 77e30e85dd Bump version to v0.10.2 2023-09-19 12:04:27 -04:00
Tulir Asokan 6c4411c666 Use native webp for decoding
Fixes #650
Fixes GHSA-w665-m639-6c38
2023-09-19 09:14:20 -04:00
Tulir Asokan ca4b46257c Bump version to v0.10.1 2023-09-16 10:29:04 -04:00
Tulir Asokan 3b19cb0e73 Update changelog
[skip ci]
2023-09-09 12:54:14 +03:00
Tulir Asokan 1f3367e757 Update dependencies again 2023-09-06 19:10:16 +03:00
Tulir Asokan 65e7cd37a4 Update dependencies 2023-09-06 17:58:24 +03:00
Tulir Asokan 8b1308595f Add support for collecting incoming galleries into single event 2023-09-04 19:47:00 +03:00
Tulir Asokan feff16f303 Remove leftover debug print 2023-09-04 15:34:48 +03:00
Tulir Asokan 1ccd16626a Clarify that the login command doesn't require the phone number 2023-09-04 12:20:49 +03:00
Tulir Asokan c704191e2c Catch panics in portal message handler 2023-09-03 01:32:25 +03:00
Tulir Asokan 015cc1f19f Add delivery status to MSS events 2023-09-01 15:54:27 +03:00
Tulir Asokan e3a93680b2 Fix syncing community announcement groups 2023-08-28 14:52:14 +03:00
Tulir Asokan 82484ff079 Update whatsmeow 2023-08-24 18:17:15 +03:00
Tulir Asokan 5fc1e0cebc Fix updating puppetsByCustomMXID map 2023-08-22 19:00:58 +03:00
Tulir Asokan bd01c661ef Move double puppeting login code to mautrix-go 2023-08-21 13:52:12 +03:00
Tulir Asokan b85fddee27 Update whatsmeow 2023-08-21 12:22:41 +03:00
Tulir Asokan 6178ced1fe Make incoming call message clearer 2023-08-21 12:21:31 +03:00
Tulir Asokan 4ad2a9e318 Use hardcoded UA for pair code 2023-08-17 11:38:45 +03:00
Tulir Asokan 4024d704b5 Bump version to v0.10.0 2023-08-17 01:10:34 +03:00
Tulir Asokan 8fffc2840b Update Go version and dependencies 2023-08-13 00:55:50 +03:00
Tulir Asokan 205d4e651b Fix more places where lids aren't ignored 2023-08-13 00:54:51 +03:00
Tulir Asokan 32d26ec0ab Add support for round video messages 2023-08-09 15:31:27 +03:00
Tulir Asokan dcd4ca366c Update whatsmeow and ignore events from @lid users 2023-08-08 15:11:30 +03:00
Tulir Asokan 6ad533c0ae Add zerolog for message handling context 2023-08-05 20:03:40 +03:00
Tulir Asokan 45e5290f0c Update mautrix-go to move stuff to util 2023-08-05 19:27:00 +03:00
Tulir Asokan e07ed17ccd Update whatsmeow again² 2023-08-05 00:07:16 +03:00
Tulir Asokan cc900971df Update whatsmeow again 2023-08-04 23:57:27 +03:00
Tulir Asokan 558ccc7ab6 Update whatsmeow 2023-08-04 16:09:54 +03:00
Tulir Asokan 262940f3a0 Use new GenerateMessageID function 2023-08-03 19:47:42 +03:00
Tulir Asokan 27290b7ebd Enable automatically re-requesting undecryptable messages from phone 2023-08-03 16:44:54 +03:00
Tulir Asokan c19b5b18b0 Remove debug retry receipt provisioning API 2023-08-03 16:44:48 +03:00
Tulir Asokan 93aac0a5fb Implicitly enable timer when receiving disappearing messages in DMs 2023-08-03 13:30:38 +03:00
Tulir Asokan ce5707315e Update whatsmeow to retry on 500 connect failures 2023-08-02 18:43:11 +03:00
Tulir Asokan e1189bad4b Log conversation settings when saving history sync payloads 2023-08-02 17:24:28 +03:00
Tulir Asokan d19ae64cca Update mautrix-go 2023-07-28 22:19:56 +03:00
Tulir Asokan 5c8c736c7f Update changelog and mautrix-go 2023-07-22 20:35:15 +03:00
Tulir Asokan a7d9251abd Add support for logging in by entering code on phone 2023-07-18 22:15:20 +03:00
Tulir Asokan dc00b55dff Bump version to v0.9.0 2023-07-16 12:30:30 +03:00
Tulir Asokan 158486cc18 Update changelog 2023-07-10 12:38:30 +03:00
Tulir Asokan 22812c7455 Sleep if logged in user is disconnected when handling message 2023-07-10 12:38:30 +03:00
vurpo ff609124b2
Update mautrix-go (#630)
(adds Matrix media retries)
2023-07-08 13:14:22 +03:00
Tulir Asokan c00fa4dd24 Send all ogg audio from WhatsApp as voice messages
For some reason WhatsApp removes the `ptt` flag when a message is
forwarded, but still renders them as voice messages.
2023-07-05 12:09:34 +03:00
Tulir Asokan de5de426cb Update dependencies 2023-06-28 23:29:54 +03:00
Tulir Asokan b33affe97d Log if finding reply target fails 2023-06-28 23:29:18 +03:00
Sumner Evans 2b8b4332b0
deps/mautrix: upgrade to reduce logs of requests
Signed-off-by: Sumner Evans <sumner@beeper.com>
2023-06-28 08:54:49 -06:00
Tulir Asokan 7f7845051c Update Docker image to Alpine 3.18 2023-06-26 13:20:59 +03:00
Tulir Asokan 2c53b2f193 Update mautrix-go 2023-06-23 15:50:02 +03:00
Tulir Asokan 1ee0841add Fix function name 2023-06-22 12:49:49 +03:00
Tulir Asokan 8d93f7c036 Fix handling max_initial_conversations being -1 in legacy backfill 2023-06-22 12:48:00 +03:00
Tulir Asokan eddd6c87bf Remove confusing backfill command 2023-06-21 10:35:39 +03:00
Tulir Asokan ccd43b2080 Move media request config and fix line wrapping 2023-06-19 21:39:25 +03:00
Tulir Asokan c850f6f373 Fix things in legacy backfill 2023-06-19 21:39:25 +03:00
Tulir Asokan 5892169dd0 Ignore @lid chats in history syncs 2023-06-19 21:39:25 +03:00
Tulir Asokan a57f4a67be Check more things via /versions flags 2023-06-19 21:39:25 +03:00
Tulir Asokan 11beb10b97 Remove MSC2716 backfill support on Synapse 2023-06-19 21:39:25 +03:00
Tulir Asokan 2d33bb1673 Add non-MSC2716 backfill support 2023-06-19 21:39:25 +03:00
Sumner Evans 8ab06edaca
deps/whatsomeow: upgrade to add retries on network failures
Signed-off-by: Sumner Evans <sumner@beeper.com>
2023-06-16 14:40:03 -06:00
Tulir Asokan 90ff645122
Merge pull request #620 from vector-im/hs/add-connectionFailures-metric
Add a metric for connection failures
2023-06-16 15:15:35 +03:00
Tulir Asokan 5ebc8313d9 Bump version to v0.8.6 2023-06-16 14:30:41 +03:00
Tulir Asokan b97b3755dc Add index on message timestamps 2023-06-16 12:58:57 +03:00
Half-Shot be5e44378f Add a metric for connection failures 2023-06-08 09:21:43 +01:00