Tulir Asokan
4408488573
Retry without sealed sender if send fails with 401 ( #419 )
2024-01-09 15:33:09 +02:00
Tulir Asokan
4aaea04d41
Clean up linking code
2024-01-09 13:29:05 +02:00
Sumner Evans
a082ca14ff
staticcheck: fix SA5011: possible nil pointer dereference
...
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-08 09:40:24 -07:00
Tulir Asokan
959eb7eaf9
Update mautrix-go
2024-01-07 23:19:31 +02:00
Tulir Asokan
fee5cf2fbc
Only decode server trust root once
2024-01-07 23:19:29 +02:00
Sumner Evans
84601c56f3
signalmeow/misc: remove global zlog
...
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-07 13:24:02 -07:00
Sumner Evans
6b98c3f955
signalmeow/web: use context logger, make SendHTTPRequest use context
...
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-07 13:23:59 -07:00
Tulir Asokan
b90b12f6ff
Send notes to self properly
2024-01-07 13:26:16 +02:00
Sumner Evans
e33fa95638
treewide: fix all ignored errors
...
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-06 16:13:47 -07:00
Sumner Evans
76e8eb2766
signalmeow/sending: use structured logging
...
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-06 10:28:33 -07:00
Sumner Evans
4828f643de
signalmeow/receiving: use structured logging
...
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-06 10:01:15 -07:00
Sumner Evans
e874d19390
signalmeow/contact: use contexts and structured logging
...
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-06 09:26:52 -07:00
Tulir Asokan
2444eaf39c
Fix signalmeow initial schema upgrade
2024-01-06 01:19:53 +02:00
Tulir Asokan
5146cb3ddc
Use go:embed for server public params
2024-01-06 00:54:15 +02:00
Tulir Asokan
9c5b63c130
Update to libsignal 0.38.0
2024-01-06 00:53:24 +02:00
Tulir Asokan
e2d8a24c99
Refactor group and user info updating
2024-01-05 22:10:59 +02:00
Tulir Asokan
c7a3bb861c
Fix some todos
2024-01-05 17:41:01 +02:00
Tulir Asokan
ed7daa088b
Split signalmeow store and client
2024-01-05 14:14:56 +02:00
Tulir Asokan
a91fc7028c
Update to libsignal 0.37.0
2024-01-04 19:52:09 +02:00
Tulir Asokan
d4497f53b4
Fix some error messages
2024-01-04 15:18:45 +02:00
Tulir Asokan
717e58cbd0
Revert "Use fake pointers for store contexts"
...
This reverts commit be876bf333 .
2024-01-04 02:11:26 +02:00
Tulir Asokan
be876bf333
Use fake pointers for store contexts
2024-01-04 02:05:01 +02:00
Tulir Asokan
9722361288
Use contexts in signal stores properly
2024-01-04 01:06:45 +02:00
Tulir Asokan
0829e48069
Use uuid type everywhere in signalmeow
2024-01-03 23:14:54 +02:00
Tulir Asokan
429125dbf5
Clean up some attachment-related things
2024-01-03 22:35:24 +02:00
Tulir Asokan
4446688764
Sprinkle runtime.KeepAlive everywhere
2024-01-03 20:31:27 +02:00
Tulir Asokan
42075c88f5
Add runtime.KeepAlive to sealed sender encrypt
...
This is a quick hack since that part crashes often, the proper solution
is probably refactoring everything to free memory manually using defers
rather than using finalizers and still having to use defer to keepalive
2024-01-03 19:53:12 +02:00
Tulir Asokan
b47620f6dd
More debugging things
2024-01-03 17:58:21 +02:00
Tulir Asokan
c03b0f84f5
Handle read receipts properly
2024-01-03 17:02:15 +02:00
Tulir Asokan
c2a7b6aa01
Check sender certificate expiry
2024-01-03 12:48:31 +02:00
Tulir Asokan
75078c7964
Adjust some logs
2024-01-03 12:26:24 +02:00
Sumner Evans
897eda98e1
zerolog: remove instances of using global log
...
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-02 21:45:06 -07:00
Sumner Evans
36cca66190
provisioning: use structured logging
...
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-02 21:45:06 -07:00
Sumner Evans
59e4efd598
signalmeow: use structured logging
...
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-02 21:45:06 -07:00
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
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
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
5842da7c4a
Add Signal root CA cert
2023-12-31 17:14:22 +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
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
bb94d392a7
Improve ping command
2023-12-30 20:53:47 +01: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
175fde6a94
Fix some tests broken by kyber prekeys
...
[skip cd]
2023-12-28 17:53:37 +01:00