Watch
1
0
Fork
You've already forked mautrix-signal
0
mirror of https://github.com/mautrix/signal.git synced 2026-11-10 08:09:18 -05:00
Commit graph mautrix-signal/pkg/signalmeow/receiving.go
Author SHA1 Message Date
Tulir Asokan
074a2a9bef client: consume unauth websocket status in ConnectBackground 2025-03-13 17:38:14 +02:00
Tulir Asokan
85cee8308e signalmeow: remove unnecessarily big channel buffer 2025-03-13 14:54:29 +02:00
Tulir Asokan
562ed05593 signalmeow: add request id to all incoming request logs 2025-03-13 14:52:11 +02:00
Tulir Asokan
870f0d152e signalmeow: fix propagating errors when disconnected 2025-02-26 19:10:01 +02:00
Nick Mills-Barrett
4713ddfcd1
signalmeow: block until stop completes
Currently the disconnect/stop bridge call will complete before all the
loops have returned. This switches them all to use a shared cancelable
context and wait group to block on stop until all loops exit.
2025-02-26 16:57:15 +00:00
Tulir Asokan
3d5f873cfc connector: connect unauthed websocket in background mode 2025-02-12 18:44:21 +02:00
Tulir Asokan
3781461b28 signalmeow/store: fix locking recipient store 2025-02-04 11:48:31 +02:00
Tulir Asokan
aca0ee20e8 client: add support for connect-once background resync interface 2025-01-16 16:29:51 +02:00
Tulir Asokan
1f5fb4119f signalmeow/receiving: log envelope timestamps when decrypting is successful 2024-12-03 17:44:34 +02:00
Tulir Asokan
29d55ebbde signalmeow: add support for ssre2
Corresponds to a338bc5a67
2024-11-18 15:19:18 +02:00
Scott Weber
3c31749fb2
handlesignal: add ServerTimestamp remote stream order on incoming messages (#550) 2024-11-13 16:20:28 -05:00
Tulir Asokan
ad41c86f11 signalmeow/receiving: handle missing era ID in group call updates 2024-10-19 23:29:34 +03:00
Tulir Asokan
b9dc3d4707 signalmeow/receiving: add timestamp for call messages 2024-10-14 12:37:30 +03:00
Tulir Asokan
ce665b23a4 signalmeow/receiving: don't send decryption error notice if content hint is implicit 2024-09-24 17:19:17 +03:00
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