Tulir Asokan
5a424c5e8d
Drop user_portal table for now
2023-12-31 15:20:40 +01:00
Tulir Asokan
35db0abe8b
Refactor database tables and query wrappers ( #402 )
...
* Change most columns to `NOT NULL`, including primary keys
(because SQLite).
* Change columns only storing signal user IDs (portal receiver, message
sender, user uuid) to use the `uuid` type instead of `TEXT`.
* Drop chat ID from message table primary key.
* Add part index to message table to replace timestamp hack for storing
multiple parts of the same message.
* Change query wrappers to use new QureyHelper struct in dbutil, and
pass contexts and errors everywhere.
As a part of changing the portal receiver from phone number to uuid,
old portals whose receiver isn't logged in anymore may be discarded.
The discarded portals will be stored in the lost_portals table for
cleanup or recovery.
2023-12-31 16:12:58 +02:00
Tulir Asokan
18e0063008
Update dependencies
2023-12-30 21:52:22 +01:00
Tulir Asokan
1feb6efe24
Remove unnecessary lo dependency
2023-12-30 21:50:27 +01:00
Tulir Asokan
14921e3734
Update portalsByMXID cache when creating DM portal
2023-12-30 21:29:28 +01:00
Tulir Asokan
0403522df0
Copy delete-portal command from WhatsApp
2023-12-30 21:24:24 +01:00
Tulir Asokan
5253d3bbf8
Fix creating DMs by inviting user
2023-12-30 21:24:24 +01:00
Tulir Asokan
b7c0e6ee74
Fix panic if bridge is stopped before websocket connects
2023-12-30 21:01:37 +01:00
Tulir Asokan
4dc2cc37c3
Disable broken tests in libsignalgo
2023-12-30 21:00:11 +01:00
Tulir Asokan
5c5c822624
Add support for device names
2023-12-30 21:00:11 +01:00
Tulir Asokan
c7a77b0197
Fix delete-session command name
2023-12-30 20:53:47 +01:00
Tulir Asokan
bb94d392a7
Improve ping command
2023-12-30 20:53:47 +01:00
Tulir Asokan
6abe80e6c7
Run all tests in one step
2023-12-29 18:33:40 -07:00
Sumner Evans
9152313cde
modules: un-modulify libsignalgo and signalmeow
...
I don't see any reason why they should have their own go.mod. I think
this is legacy from when I had them in separate repositories.
If we ever need to split those packages out into their own repo, we can
just:
1. Copy the directories to a new repo
2. Copy the go.mod/go.sum files
3. Run `go mod tidy` in this repo and the new repo.
This commit also removes the go.work and go.work.sum files.
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2023-12-29 18:33:31 -07:00
Tulir Asokan
1c1f531a98
Update actions
...
[skip cd]
2023-12-29 17:48:33 +01:00
Tulir Asokan
af2f71b566
Don't encrypt reactions. Fixes #400
2023-12-29 17:18:22 +01:00
Tulir Asokan
175fde6a94
Fix some tests broken by kyber prekeys
...
[skip cd]
2023-12-28 17:53:37 +01:00
Sumner Evans
fb18dcebcf
nix: shell -> flake
...
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2023-12-26 18:39:42 -07:00
Malte E
c345091e3d
Add relay mode ( #392 )
2023-12-26 21:47:27 +01:00
Tulir Asokan
a57b51af3d
Allow body to be same as filename if there's a formatted_body for caption
2023-12-26 20:01:47 +01:00
Tulir Asokan
38e0c5fca6
Partially fix replying to files
2023-12-26 19:53:49 +01:00
Tulir Asokan
da879806fd
Fix sending voice messages
2023-12-26 19:49:20 +01:00
Tulir Asokan
dd77f9d4b6
Add more info to outgoing attachment pointers
2023-12-26 19:39:18 +01:00
Tulir Asokan
d78e006bc6
Fix panics when receiving stickers
2023-12-26 19:39:01 +01:00
Tulir Asokan
203f80cc0b
Send stickers as real stickers instead of images
2023-12-26 19:09:46 +01:00
Tulir Asokan
2dbc42dc77
Fix IsLoggedIn check
...
Should fix the event handler panic when handling typing notifications
2023-12-26 18:50:32 +01:00
Tulir Asokan
ed4c7c93b5
Reply with error when trying to send without being logged in
2023-12-26 18:24:53 +01:00
Tulir Asokan
9201bff003
Add more checks to weird name hack. Fixes #394
2023-12-26 18:00:48 +01:00
Tulir Asokan
c6d22f403b
Fix sending captions. Fixes #393
2023-12-26 17:56:43 +01:00
Tulir Asokan
7186350d10
Small consistency fixes
2023-12-22 14:56:31 +02:00
Tulir Asokan
3a3c7299fe
Remove custom UUID type
2023-12-22 14:48:47 +02:00
Tulir Asokan
5efa86b627
Fix method receiver name
2023-12-22 13:50:56 +02:00
Tulir Asokan
df03fcdeb9
Fix over-indentation of incoming request handler
2023-12-22 13:49:38 +02:00
Tulir Asokan
ae60c41282
Actually update protobufs
2023-12-21 18:06:58 +02:00
Tulir Asokan
8260ba1559
Add support for Matrix -> Signal formatting
2023-12-21 16:57:21 +02:00
Tulir Asokan
3c0482e97f
Update mautrix-go to ignore legacy log configs
2023-12-19 15:43:37 +02:00
Tulir Asokan
aaf862ad9a
Update changelog
2023-12-19 15:43:37 +02:00
Tulir Asokan
6f0d62784d
Automatically add sslmode=disable to postgres connection string when upgrading
2023-12-19 12:43:20 +02:00
Tulir Asokan
3ea2ac8c2b
Fix version number
2023-12-18 21:27:33 +02:00
Tulir Asokan
3fabd67c5b
Rename file
2023-12-18 14:22:49 +02:00
Tulir Asokan
6e7faa2a65
Fix standalone dockerfile
2023-12-18 13:11:32 +02:00
Tulir Asokan
4bf0008010
Add automatic migration from python config
2023-12-18 12:30:19 +02:00
Tulir Asokan
947575a5b0
Remove outdated badges
2023-12-18 02:21:48 +02:00
Tulir Asokan
f79668dd4b
Update readme and other things
2023-12-18 02:05:18 +02:00
Tulir Asokan
0bf0111dc4
Check membership cache in ensureInvited
2023-12-18 01:08:23 +02:00
Tulir Asokan
e10672d353
Merge remote-tracking branch 'element-hq/go/ensure-user-invited-on-update'
2023-12-18 01:08:10 +02:00
Tulir Asokan
54aab69650
Merge remote-tracking branch 'AndrewFerr/inbound-descriptions'
2023-12-18 01:02:29 +02:00
Tulir Asokan
42636dfe37
Try to not mark CI as failed
...
[skip cd]
2023-12-18 00:38:42 +02:00
Tulir Asokan
3fffbfae6b
Fix downloading libsignal in test action
...
[skip cd]
2023-12-18 00:30:39 +02:00
Tulir Asokan
f22d2b88d3
Fix library path in test action
...
[skip cd]
2023-12-18 00:28:27 +02:00