Sumner Evans
5558469743
http: use http.Method* instead of hard-coded methods
...
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-02 21:35:42 -07:00
Tulir Asokan
36425edf2c
Drop user_portal again
2024-01-03 01:18:09 +02:00
Tulir Asokan
91b5ce7f67
Ensure portal info is synced when creating room
2024-01-03 01:14:17 +02:00
Tulir Asokan
8d9ed76ccd
Add support for personal filtering spaces
2024-01-03 01:09:33 +02:00
Tulir Asokan
80a17eb114
Don't set caption in attachment pointers
2024-01-03 00:16:19 +02:00
Tulir Asokan
27f8596378
Adjust size metadata when bridging stickers from Signal
2024-01-03 00:16:19 +02:00
Tulir Asokan
dcb84458f4
Cancel finalizers for values returned to Rust code
2024-01-03 00:16:19 +02:00
Tulir Asokan
616f4f4a29
Don't allow copying structs with finalizers
2024-01-03 00:16:19 +02:00
Tulir Asokan
a0dadf733f
Add -lm to ldflags
2024-01-03 00:16:19 +02:00
Tulir Asokan
31c48d9e83
Add trace log with raw Signal message data
2024-01-03 00:16:19 +02:00
Tulir Asokan
9b459150c4
Refactor Matrix -> Signal message handling
2024-01-03 00:16:19 +02:00
Tulir Asokan
343b0c0f79
Add fallback message for gift badges
2024-01-02 21:27:11 +02:00
Tulir Asokan
f0462c380d
Don't force signalmeow log level
2024-01-02 21:22:39 +02:00
Tulir Asokan
6df2547947
Don't allow multiple parts in some message types
2024-01-02 21:17:42 +02:00
Tulir Asokan
f9f568dc86
Bridge URL previews from Signal
2024-01-02 21:15:17 +02:00
Tulir Asokan
67077b4667
Update message timestamp when editing
2024-01-02 19:35:57 +02:00
Tulir Asokan
470f59db08
Fix handling edits with no extra content
2024-01-02 19:23:52 +02:00
Tulir Asokan
a0fbdee4c0
Fix handling sync messages in group
2024-01-02 19:22:16 +02:00
Tulir Asokan
9efe31d789
Refactor Signal -> Matrix message handling
...
Also add support for edits
2024-01-02 19:04:45 +02:00
Tulir Asokan
559da81ffc
Handle duplicate logins (ref #408 )
2024-01-02 17:34:47 +02:00
Tulir Asokan
46bf2fe8b8
Fix mistake in sqlite schema upgrade
2024-01-02 11:42:39 +02:00
Tulir Asokan
8e56da7397
Fetch submodules in build.sh
...
[skip cd]
2024-01-01 18:54:19 +02:00
Tulir Asokan
584786f438
Drop old reaction entries with fake timestamp
...
Fixes #405
2024-01-01 15:58:37 +02:00
Tulir Asokan
2dac1db3b6
Handle different postgres constraint names
...
Hopefully the rest of the upgrade will still fail if the name is
neither of these options
2023-12-31 19:06:00 +01:00
Tulir Asokan
9fed988e6b
Fix inserting puppets and portals
...
Closes #404
2023-12-31 17:48:02 +01:00
Tulir Asokan
5842da7c4a
Add Signal root CA cert
2023-12-31 17:14:22 +01:00
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