Tulir Asokan
385af2ea79
Use precompiled libsignal in github actions
...
[skip cd]
2023-12-18 00:11:14 +02:00
Tulir Asokan
83415628db
Fix running libsignalgo tests and add pipefail for bridge tests
...
[skip cd]
2023-12-18 00:09:22 +02:00
Tulir Asokan
cbd3b1b0d5
Try to fix tests in CI again
...
[skip cd]
2023-12-17 23:56:34 +02:00
Tulir Asokan
4f60bd3fbe
Try to fix tests in CI
...
[skip cd]
2023-12-17 23:48:12 +02:00
Tulir Asokan
cf6a9778b3
Update editorconfig
2023-12-17 23:48:07 +02:00
Tulir Asokan
45c2ce2cd9
Fix Go 1.20 compatibility
2023-12-17 23:30:45 +02:00
Tulir Asokan
04758bb8c5
Use Go 1.21 in github actions
2023-12-17 23:28:43 +02:00
Tulir Asokan
4072495da6
Add another test
2023-12-17 23:26:53 +02:00
Tulir Asokan
4ef484374a
Run bridge tests in github actions
2023-12-17 23:20:34 +02:00
Tulir Asokan
6a5fc0faa3
Fix handling overflowing body ranges
2023-12-17 23:18:25 +02:00
Tulir Asokan
1b3aac0841
Add some comments and tests to format parser
2023-12-17 23:18:23 +02:00
Tulir Asokan
61ef8904e9
Add support for Signal -> Matrix formatting
2023-12-17 22:50:09 +02:00
Tulir Asokan
3411949632
Remove custom time formatter
2023-12-17 18:23:03 +02:00
Tulir Asokan
a472f91179
Fix receiver name
2023-12-17 18:19:57 +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
ce93c81271
Remove unused columns in puppet table
2023-12-17 17:25:29 +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
7df6a43d6f
Update ROADMAP.md
2023-12-17 15:44:28 +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
Tulir Asokan
d73ba502ef
Switch signalmeow upgrades to dbutil
2023-12-17 15:14:31 +02:00
Tulir Asokan
0c009e58fa
Merge remote-tracking branch 'element-hq/go/fix-contact-profile-key-column-type'
2023-12-17 14:52:37 +02:00
Scott Weber
63b24c86d1
Send BAD_CREDENTIALS on signalgo migration
...
Or really any time Signal device credentials should be in signalmeow DB
but aren't there.
2023-12-14 14:54:18 +00:00
Scott Weber
3953789ef0
Support kyber prekeys and use them during provisioning
2023-12-13 22:15:41 +00:00
Scott Weber
607f33e069
New provisioning flow (for /v1/devices/link)
...
Note: this returns 422, I think I need to include kyber prekeys
2023-12-12 22:54:38 +00:00
Tulir Asokan
538aa7a477
Switch to shared CI config
2023-12-12 18:18:35 +02:00
Tulir Asokan
8523eec2ab
Add missing cflag
2023-12-12 16:37:44 +02:00
Tulir Asokan
1b08c300cc
Build fully static binaries and use Alpine for docker image
2023-12-12 16:36:17 +02:00
Tulir Asokan
d9db092d8f
Update .gitignore
2023-12-11 16:11:24 +02:00
Scott Weber
55318033fd
Work around GCC bug to fix Linux build (breaks clang build on macOS though)
2023-12-11 04:11:20 +00:00
Scott Weber
e6eb03901b
Update GH workflow with new libsignal version
2023-12-10 21:53:17 -05:00
Scott Weber
9ea94243a9
Update bridge to use libsignal v0.36.1 and latest protobufs
...
- Update libsignal to v0.36.1 and run protobuf fetch and update
- Update libsignalgo to work with libsignal v0.36.1
2023-12-10 21:39:43 -05:00
Andrew Ferrazzutti
bdc2fec369
Refactor for code reuse
2023-12-07 00:41:59 -05:00
Andrew Ferrazzutti
dd48c404c2
Bridge descriptions from Signal
2023-12-07 00:41:59 -05:00
Toni Spets
0ce75e293e
Expose debug API with pprof
...
Runs along the provisioning API with same authentication.
2023-12-05 12:33:47 +02:00
Scott Weber
7b674397e3
Revert "Clean up extra ghosts that may be left from double puppetting problems"
...
This reverts commit 5d74b17856 and commit 3c0129cb38 .
2023-12-01 14:52:56 -05:00
Scott Weber
5d74b17856
Run CleanUpExtraGhosts outside of the user lock
2023-12-01 12:30:40 -05:00
Scott Weber
3c0129cb38
Clean up extra ghosts that may be left from double puppetting problems
2023-12-01 12:12:45 -05: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
Scott Weber
068af1df27
Don't crash on messages from Signal with formatting
2023-11-28 20:09:39 -05:00
Andrew Ferrazzutti
6f378d1b99
Upgrade only for postgres
2023-11-24 11:41:24 -05:00
Andrew Ferrazzutti
afab8bf265
Set contact table profile key type to bytea
...
Make it use the same data type as the profile keys table.
This fixes UTF encoding errors when using a postgres store.
2023-11-24 01:40:31 -05:00
Andrew Ferrazzutti
468f655a6f
Ensure user is invited to portals on update
...
because if a user ever leaves a portal, there is no obvious way for them
to rejoin it.
2023-11-23 15:52:37 -05:00
Scott Weber
8f3f50eb87
Handle ws == nil, and ws reconnect loops
2023-11-22 23:06:41 -05:00
Scott Weber
e20d746376
Increase WS read limit to 1MB from default of 32KB
2023-11-22 21:59:55 -05:00
Scott Weber
6068d25fc9
Ensure double puppetting is started for incoming messages (if enabled)
2023-11-21 18:17:42 -05:00
Andrew Ferrazzutti
fa7a34ac15
Scope reply events to current portal & quoted user ( #17 )
...
* Scope reply events to current portal & quoted user
When bridging a Signal quote to a Matrix reply, consider events only
from the portal in which the reply is being bridged when searching for
the replied-to message.
Also refuse to bridge the quote if there is no puppet for the Signal
user who sent the message that was quoted.
* Don't check quoted sender puppet
2023-11-21 15:09:12 -05:00