Tulir Asokan
a3cb6c3791
Use uintptrs for store contexts
2024-01-04 02:21:46 +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
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
7186350d10
Small consistency fixes
2023-12-22 14:56:31 +02: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
f79668dd4b
Update readme and other things
2023-12-18 02:05:18 +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
Tulir Asokan
06d0939645
Hack message conversion to make captions optional
2023-12-17 18:14:09 +02:00
Tulir Asokan
ea6b2df562
Fix contact avatar mime types
2023-12-17 17:39:40 +02:00
Tulir Asokan
5e1025cdca
Fix displayname template and add use contact avatar option
2023-12-17 17:32:20 +02:00
Tulir Asokan
60b9a4577b
Add build flags to fix macOS build
2023-12-17 16:13:39 +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
Tulir Asokan
396071be12
Update dependencies
2023-12-17 15:16:18 +02:00