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
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
d4497f53b4
Fix some error messages
2024-01-04 15:18:45 +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
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
616f4f4a29
Don't allow copying structs with finalizers
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
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
38e0c5fca6
Partially fix replying to files
2023-12-26 19:53:49 +01:00
Tulir Asokan
d78e006bc6
Fix panics when receiving stickers
2023-12-26 19:39:01 +01:00
Tulir Asokan
c6d22f403b
Fix sending captions. Fixes #393
2023-12-26 17:56:43 +01: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
54aab69650
Merge remote-tracking branch 'AndrewFerr/inbound-descriptions'
2023-12-18 01:02:29 +02:00
Tulir Asokan
61ef8904e9
Add support for Signal -> Matrix formatting
2023-12-17 22:50:09 +02:00