Commit graph

66 commits

Author SHA1 Message Date
Tulir Asokan 103bfc31c6 Update dependencies and lots of code
* Bump minimum Go version to 1.21
* Add contexts everywhere
* Switch database code to new dbutil patterns
* Finish switching away from maulogger
2024-03-11 22:28:06 +02:00
Tulir Asokan dcd4ca366c Update whatsmeow and ignore events from @lid users 2023-08-08 15:11:30 +03:00
Tulir Asokan a57f4a67be Check more things via /versions flags 2023-06-19 21:39:25 +03:00
Sumner Evans a7068cd75b
contact info: omit is_bridge_bot, remove is_bot
Signed-off-by: Sumner Evans <sumner@beeper.com>
2023-04-18 10:17:55 -06:00
Tulir Asokan 0fcb64c1aa Add option to not set room meta in encrypted rooms 2023-04-14 13:40:35 +03:00
vurpo a6dca47740
Add custom contact info fields to puppet profile (#605)
* Add custom contact info fields to puppet profile

* Rename the field names in the new contact info

* Set contact info for puppets on startup

* Check for hungry inside the contact info function

* appservice bot: add contact info to bridge bot

Signed-off-by: Sumner Evans <sumner@beeper.com>

* go.sum: tidy

Signed-off-by: Sumner Evans <sumner@beeper.com>

* puppet/UpdateContactInfo: reduce nesting

Signed-off-by: Sumner Evans <sumner@beeper.com>

---------

Signed-off-by: Sumner Evans <sumner@beeper.com>
Co-authored-by: Sumner Evans <sumner@beeper.com>
2023-04-10 18:39:05 +03:00
Tulir Asokan a8a98264fb Fix syncing community avatars 2022-12-14 01:04:14 +02:00
Tulir Asokan 37f4182aa7 Update mautrix-go 2022-11-05 11:29:11 +02:00
Tulir Asokan 859355a3db Implicitly enable private_chat_portal_meta in encrypted rooms 2022-10-07 21:01:05 +03:00
Tulir Asokan 93cbbb7f93 Move reuploadAvatar next to updateAvatar 2022-09-28 14:45:36 +03:00
Tulir Asokan 0e298bb88b Fix updated name log 2022-09-22 16:20:13 +03:00
Tulir Asokan 17a9df3297 Always sync private chat portal meta in background sync 2022-07-05 11:11:48 +03:00
Tulir Asokan 95aa6c01a6 Fix potential bugs in direct chat portal info updating 2022-07-05 11:02:54 +03:00
Tulir Asokan bf4c01648f Move most double puppet source key adding to mautrix-go 2022-06-30 20:56:26 +03:00
Tulir Asokan 19b4c3093a Apply periodic resync for group chats too 2022-06-28 16:22:11 +03:00
Tulir Asokan 9f0901f560 Add periodic ghost avatar resync 2022-06-28 14:37:50 +03:00
Tulir Asokan 87b5c91fe7 Disable double puppeting in broadcast rooms. Fixes #506
(also fixes #371)
2022-05-29 19:20:29 +03:00
Tulir Asokan 372929f454 Fix small things 2022-05-24 14:02:06 +03:00
Tulir Asokan 9e4e964112 Move login-matrix commands to mautrix-go 2022-05-22 22:03:08 +03:00
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
Tulir Asokan c00f74af3b Sync push name on message if it got dropped before somehow 2022-05-13 11:34:51 +03:00
Tulir Asokan 5ef66496d6 Acquire roomCreateLock when updating puppet info to prevent race conditions 2022-03-25 00:02:38 +02:00
Tulir Asokan 1a1fd68812 Improve connection error handling 2022-02-17 14:09:40 +02:00
Tulir Asokan 1d8ef6cb89 Add support for MSC2409 2021-12-07 16:02:51 +02:00
Tulir Asokan f5ae637ffd Resync all puppets after app state sync completes 2021-11-08 13:04:39 +02:00
Tulir Asokan ea045160a2 Never return nil in IntentFor(). Fixes #379 2021-11-06 14:20:56 +02:00
Tulir Asokan 2cd6713cc4 Add typing notification bridging in both directions 2021-10-27 19:30:34 +03:00
Tulir Asokan 0b4d0bbbe1 Handle history sync payloads with MSC2716 batch sending 2021-10-26 17:01:10 +03:00
Tulir Asokan 56850bb698 Initial switch to go.mau.fi/whatsmeow 2021-10-22 20:14:34 +03:00
Tulir Asokan bc7a82c0be Use mutex for accessing go-whatsapp contacts and chats maps 2021-06-19 02:22:01 +03:00
Tulir Asokan 653bbd36de Log data when sending bridge state to asmux 2021-04-05 19:24:37 +03:00
Tulir Asokan 7af5b46414 Set name in SyncContactIfNecessary even if contact info not found 2021-03-22 20:49:17 +02:00
Tulir Asokan 93953ec48f Sync contact info when syncing room members if puppet has no displayname 2021-03-19 20:55:08 +02:00
Tulir Asokan 7bd47fabb2 Update go-whatsapp to break everything and maybe improve things 2021-02-18 23:36:14 +02:00
Tulir Asokan 69dd7f803a Move whatsapp-ext to go-whatsapp 2021-02-17 01:21:30 +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 2638204eaa Add option to update m.direct with double puppeting 2020-08-22 13:07:55 +03:00
Tulir Asokan fed6756ae5 Handle leaving and kicking from Matrix. Fixes #47 2020-06-25 23:33:11 +03:00
Tulir Asokan c0fc06b410 Allow using custom puppet for backfilling 2020-05-21 20:00:00 +03:00
Tulir Asokan 6e50a7c380 Switch appservice module location 2020-05-09 20:08:05 +03:00
Tulir Asokan acc25a02e4 Update mautrix-go 2020-05-08 22:32:22 +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 c4751f4953 Use default puppet when backfilling to avoid rate limits 2019-05-30 17:22:03 +03:00
Tulir Asokan bfe5af7edc Add Matrix->WhatsApp EDU bridging 2019-05-27 13:46:04 +03:00
Tulir Asokan 2c9c473040 Add basic Matrix puppeting support
May contain bugs.
EDUs from /sync are not yet handled.
2019-05-24 02:33:30 +03:00
Tulir Asokan f9c3e99d10 Fix/change things 2019-05-23 20:09:22 +03:00
Tulir Asokan d7b36d55d7 Handle puppet avatar fetch errors properly 2019-05-23 19:07:34 +03:00