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
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
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
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
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
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
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
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
b2da336627
Perform "ClearKeysAndDisconnect" on prekey decryption errors
...
Might be a bit aggressive, but necessary because right now there are a
bunch of bridges with broken prekeys.
Required extensive work on disconnect/reconnect logic.
2023-11-20 22:28:49 -05:00
Scott Weber
cef8e3049a
Got my logic backwards
2023-11-19 20:22:35 -05:00
Scott Weber
62274973fb
Ignore contact if it doesn't have a valid UUID
...
It seems we sometimes get UUIDs formated like "PNI:a1b2c3...", they
could probably be parsed into some sort of PNI contact but just drop
them for now
2023-11-19 10:48:51 -05:00
Scott Weber
ece2eed474
Make provisioning API safer and clear device keys before storing prekeys
2023-11-19 07:36:21 -05:00
Scott Weber
16787a28b5
Don't try to save contact with no UUID
...
Also reduce some contact logging
2023-11-17 12:01:35 -05:00
Scott Weber
ae8de47390
Serialize access to encryption per bridge user
...
To prevent races in incrementing ratchets and such
2023-11-15 13:41:11 -05:00
Scott Weber
d308f27e61
Request contacts from Signal device when creating new Matrix room
2023-11-15 10:58:42 -05:00
Andrew Ferrazzutti
353d6c1b7c
Don't break inbound bridging on DMing own account ( #11 )
...
Without this, sending a message in the Note to Self portal / DM with
your own Signal account breaks all subsequent inbound bridging.
2023-11-14 15:43:37 -05:00
Scott Weber
9df4ed6ed3
Make error more generic to not break error reporting
2023-11-14 15:12:22 -05:00
Scott Weber
79047202e7
Basic support for receiving Signal contact cards
2023-11-13 14:33:26 -05:00
Andrew Ferrazzutti
71254782af
Fix nil dereferences ( #14 )
...
* Return before dereferencing nil usmc
* Return before dereferencing nil msg
2023-11-13 09:24:10 -05:00
Scott Weber
46d5b4e03c
If bridge has upgraded and user tries to send a message before logging back in, send BAD_CREDENTIALS
2023-11-10 14:05:09 -05:00
Scott Weber
b7bcdfdd39
Sender envelopes include the sender e164!!! KEEP THEM
2023-11-08 15:54:18 -05:00
Scott Weber
7007a36c90
Handle updating puppet with contact info even if profile fetch fails
2023-11-08 12:08:40 -05:00
Scott Weber
aee115d81f
Add "contacts", and layer on top of profiles
2023-11-07 23:08:31 -05:00
Scott Weber
da5eb0c8e7
Add TransientDisconnect debouncing, and fix BridgeState sending bug
2023-11-03 16:55:02 -04:00
Scott Weber
870e776422
Don't crash when sending in a group by myself
2023-11-01 11:57:16 -04:00
Scott Weber
36da9e6e3b
Fix up contexts and error messages
2023-11-01 00:23:14 -04:00
Scott Weber
b04a919c65
Handle restarting provisioning session
2023-11-01 00:10:36 -04:00
Scott Weber
d9cb00f9ff
Fix outgoing videos, voice notes and files
2023-10-26 14:39:27 -04:00
Scott Weber
4966bda94a
Disappearing messages!
2023-10-22 23:39:59 -04:00
Scott Weber
906d0c82c9
Add logging to try and figure out why CONNECTED state wasn't sent
2023-10-19 09:39:03 -04:00