Tulir Asokan
ebd8114db1
signalmeow/receiving: actually ignore old counter decryption erorrs
...
Might fix #552
2024-09-23 20:45:12 +03:00
Tulir Asokan
a4301347de
signalmeow/receiving: don't panic on decryption errors with unknown sender
...
Fixes #546
2024-09-10 22:20:52 +03:00
Tulir Asokan
ffd1ba34c0
signalmeow: clean up decryption code
2024-09-09 21:05:15 +03:00
Tulir Asokan
798ebb689f
handlesignal: bridge decryption errors
2024-09-09 19:25:10 +03:00
Tulir Asokan
bf63aa1aa6
signalmeow: adjust raw data logs
2024-09-03 03:03:37 +03:00
Tulir Asokan
4ba7ef7442
signalmeow: make sync contacts call on connect optional
2024-08-09 23:42:38 +03:00
Tulir Asokan
e627ad878e
signalmeow/receiving: handle sync messages sent to PNIs properly
...
* store destination E.164 numbers received in sync messages
* fetch PNI identity from server if it isn't found in database when handling
PNI signature message
2024-07-14 19:19:02 +03:00
Tulir Asokan
43ee1bb438
signalmeow: don't update e164 if it's empty
2024-06-25 16:14:21 +03:00
Scott Weber
e369a56c31
Minor incoming messages refactor and send m.notice on decryption errors ( #496 )
...
We were falling through without propagating errors anywhere. I caught
most decryption errors and send them along in the new Err field in
DecryptionResult, to be then passed along to the bridge as a new type of
chat event.
I'm going to do another pass to catch any last decryption errors, but
this should be a big improvement over what we currently do.
2024-04-11 14:31:27 -04:00
Tulir Asokan
14a6adc5a2
Fix identity store being hardcoded to ACIs
2024-03-25 21:25:00 +02:00
Tulir Asokan
b57710aa8f
Improve some log lines
2024-03-25 20:55:46 +02:00
Tulir Asokan
51617d3030
Don't clear keys on decryption errors
2024-03-25 20:55:04 +02:00
Tulir Asokan
e1cf5b76b0
Add PNI signature to next sent message after receiving to PNI
2024-03-25 15:49:18 +02:00
Tulir Asokan
68cb547ef9
Request and save master key for storage service
2024-03-22 22:32:29 +02:00
Tulir Asokan
2eb41b5e83
Refactor recipient storage
2024-03-22 22:32:29 +02:00
Tulir Asokan
5bb2db43c0
Add support for PNI portals
2024-03-22 15:37:21 +02:00
Tulir Asokan
a93dd0eec5
Support PNIs for sync messages and refactor some things
2024-03-21 14:20:05 +02:00
Tulir Asokan
b0947b21fd
Refactor prekey and session tables to add own service ID
2024-03-19 19:26:51 +02:00
Tulir Asokan
25f0efc7e0
Refactor sending to use service IDs
2024-03-19 19:15:37 +02:00
Scott Weber
ecc78fabe7
Don't clear keys on "invalid signed prekey identifier"
2024-03-08 11:15:29 -05:00
Scott Weber
100a81ab5e
Add LastConnectionStatus() to signalmeow
2024-02-29 22:48:42 -05:00
Andrew Ferrazzutti
7761199303
Use Stringer with zerolog ( #441 )
...
Satisfies the "zerolog-use-stringer" pre-commit hook
2024-02-10 14:36:05 +02:00
Scott Weber
d9a8f7bedc
Generate and register more prekeys if we're running low
2024-01-09 11:19:36 -05: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
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
e2d8a24c99
Refactor group and user info updating
2024-01-05 22:10:59 +02:00
Tulir Asokan
ed7daa088b
Split signalmeow store and client
2024-01-05 14:14:56 +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
b47620f6dd
More debugging things
2024-01-03 17:58:21 +02: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
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
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
d78e006bc6
Fix panics when receiving stickers
2023-12-26 19:39:01 +01: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
61ef8904e9
Add support for Signal -> Matrix formatting
2023-12-17 22:50:09 +02:00
Tulir Asokan
06d0939645
Hack message conversion to make captions optional
2023-12-17 18:14:09 +02:00
Tulir Asokan
5e1025cdca
Fix displayname template and add use contact avatar option
2023-12-17 17:32:20 +02:00
Tulir Asokan
49ce1f530c
Add copyright headers
2023-12-17 15:54:35 +02:00
Tulir Asokan
61841ca4f1
Organize imports
2023-12-17 15:21:21 +02:00
Scott Weber
7d487dbd2f
Hack to fix bridging multiple images from Signal
...
and include very basic and buggy support for reacting to them
2023-11-29 13:07:20 -05:00