Commit graph

50 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 6feebd827b Add basic newsletter support. Fixes #655 2023-10-13 18:10:26 +03:00
Tulir Asokan 45e5290f0c Update mautrix-go to move stuff to util 2023-08-05 19:27:00 +03:00
Tulir Asokan c477f46af8 Fix syncing DMs in sync space command 2023-02-15 14:33:53 +02:00
Tulir Asokan 1ce4e4a219 Fix some database transaction bugs 2023-01-04 02:13:20 +02:00
Tulir Asokan 54c61c63e6 Update child portal m.bridge info when updating parent 2022-12-14 01:04:11 +02:00
Tulir Asokan 74e6c5f53e Clear in_space flag in portals when deleting parent 2022-12-03 16:48:39 +02:00
Tulir Asokan a1192bd0a4 Add support for communities 2022-12-02 15:36:19 +02:00
Tulir Asokan 86e739b6a1 Simplify using optional db transactions 2022-11-10 23:12:08 +02:00
Tulir Asokan f79efa9037 Update mautrix-go 2022-08-14 19:37:11 +03:00
Sumner Evans 17cd75654f
Fix the FindPrivateChats SELECT statement
The % needs to be escaped in the LIKE statement.

Closes #532
2022-07-18 19:11:23 -06: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 40ea8a8324 Stop using SELECT * 2022-06-24 17:53:28 +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
Sumner Evans f2e762680c
media backfill: add ability to automatically request media not on WA server
This adds a new backfill type for media that sends a request to the
phone for every media that is not available on the WA servers. WA
deletes media from their servers after about two weeks, so you have to
ask the phone to re-upload it.

In order to use this, you need to enable
bridge.history_sync.backfill_media and configure the requests that will
be made per portal using bridge.history_sync.media (which is similar to
the deferred backfill config).

If you already have backfilled portals, but want to do a one-off media
backfill for all existing portals, you can set
bridge.history_sync.enqueue_backfill_media_next_start to true.
2022-04-19 08:12:51 -06:00
Tulir Asokan 18ea5af45e Add support for disappearing messages 2022-01-07 14:32:00 +02:00
Tulir Asokan ba536f17e7 Add command to sync DM rooms into space 2021-12-29 21:40:58 +02:00
Tulir Asokan 7c7ac37ba7 Fix updating rows on SQLite. Fixes #380 2021-11-07 23:42:23 +02:00
Tulir Asokan 752aff48f1 Prioritize backfilling recent messages and fix some bugs 2021-11-03 21:34:06 +02:00
Tulir Asokan b2e6a614b9 Update delete-all-portals and remove commented code 2021-10-28 14:27:59 +03:00
Tulir Asokan bb9a0f6528 Make relay mode more like the Signal bridge 2021-10-28 13:57:15 +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 a911a0c1a9 Add better support for broadcast lists 2021-02-21 14:18:15 +02:00
Tulir Asokan 69dd7f803a Move whatsapp-ext to go-whatsapp 2021-02-17 01:21:30 +02:00
Tulir Asokan 2638204eaa Add option to update m.direct with double puppeting 2020-08-22 13:07:55 +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
Tulir Asokan e124641107 Add option to set private chat portal rooms' name/avatar explicitly 2019-06-01 20:03:29 +03:00
Tulir Asokan dce08b1422 Add user-portal mapping to database 2019-05-28 21:31:25 +03:00
Tulir Asokan b0d774a5a5 Add database migrations and handle leaving private chat portals. Fixes #7 2019-05-16 21:26:43 +03:00
Dominic Renner d91bc8c346 Update portal.go 2019-03-06 22:23:05 +01:00
Dominic Renner daf0faab61 Fixed many database issues 2019-03-06 16:33:42 +01:00
Dominic Renner 6547a2ce1f changed sqlite to postgresql 2019-03-06 10:59:52 +01:00
Tulir Asokan 9e170f3d04 Add a bunch of new logging 2019-01-21 23:55:16 +02:00
Tulir Asokan 79bd35964f Update license year, Dockerfile, docker-run.sh and deps and add editorconfig 2019-01-12 15:54:04 +02:00
Tulir Asokan 1cccefd34c Switch to Go modules 2019-01-11 21:17:39 +02:00
Tulir Asokan 22cdf519f2 Fix desegregation changes to make the bridge work again 2018-08-30 01:10:26 +03:00
Tulir Asokan c7348f29b0 Initial desegregation of users and automatic config updating 2018-08-29 00:40:54 +03:00
Tulir Asokan 22e76b6a37 Format 2018-08-26 22:53:13 +03:00
Tulir Asokan d3a178ecf3 Add handling for group metadata changes and refactor things
Group metadata temporarily broken until power level bridging is implemented
2018-08-26 01:56:22 +03:00
Tulir Asokan 329bc9d8ce Add avatars, room topics and message deduplication 2018-08-23 01:12:26 +03:00
Tulir Asokan c1f8d264f4 Fix portal DB scanning and add initial message bridging 2018-08-19 18:21:38 +03:00
Tulir Asokan a9124b89bd Fix and add things
* Fix user ID reservation in registration
* Fix some database things
* Add commands
* Add basic contact syncing and portal creation
* Add better error logging
2018-08-18 22:57:33 +03:00
Tulir Asokan edd4f817e4 Use type aliases for different ID types and add puppet type 2018-08-17 00:11:28 +03:00
Tulir Asokan 141eba644b Fix data storage and other things 2018-08-16 19:20:07 +03:00
Tulir Asokan 9c48eeb534 Add puppet and portal stuff and fix config stuff 2018-08-16 15:59:18 +03:00
Tulir Asokan fd3c1fb77c Add database models and improve config/main 2018-08-13 23:24:44 +03:00