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
Andrew Ferrazzutti
1dfd08f166
Deduplicate inbound messages ( #15 )
2023-11-14 14:37:33 -05:00
Andrew Ferrazzutti
20cc27a297
Add Prometheus metrics ( #8 )
2023-11-14 14:27:56 -05:00
Scott Weber
8c11301398
Remove warning
2023-11-14 14:25:00 -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
aeaec30086
Always store the same timestamp in the DB as was sent to Signal
2023-11-09 13:37:31 -05:00
Scott Weber
dba988356b
Include the RoomID of the room we just created
2023-11-09 12:25:56 -05:00
Scott Weber
18f4676403
Implement SNC API for starting chats with people the bridge knows
2023-11-09 12:20:30 -05:00
Scott Weber
c0bd0710c5
PM bridgebot command that just looks up phone numbers that the bridge has already seen
2023-11-08 16:24:45 -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
dffed61b1d
Fix comments
2023-11-05 10:15:29 -05:00
Scott Weber
da5eb0c8e7
Add TransientDisconnect debouncing, and fix BridgeState sending bug
2023-11-03 16:55:02 -04:00
Scott Weber
ccd48585f0
Don't send CONNECTING/BAD_CREDS if bridge has no SignalDevice
2023-11-02 09:48:39 -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
db01419c8c
Now try sending 400, just like the old bridge (and the old CND would accept quietly)
2023-11-01 10:58:02 -04:00
Scott Weber
8850c90738
Try being chill
2023-11-01 09:59:49 -04:00
Scott Weber
e5095e5419
Tweak wait timeout to 45s (desktop retries at 30s)
2023-11-01 00:46:22 -04:00
Scott Weber
c7b23b8174
Fix waitForScan error, and more error messages
2023-11-01 00:34:07 -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
89c540496c
Initialize our map
2023-10-31 23:44:54 -04:00
Scott Weber
4064dba3f5
Provisioning API fixes
2023-10-31 23:31:18 -04:00
Scott Weber
a09cec4a81
Update go.yml to fix test build
...
Only updated lint section last time
2023-10-30 12:28:51 -04:00
Scott Weber
8ba1cd8a1e
Update go.yml with protobuf-compiler
...
Attempt to fix broken test build on github CI
2023-10-30 12:21:50 -04:00
Scott Weber
3108b99208
Fix captions signal -> matrix (need a filename set)
2023-10-29 09:32:54 -04:00
Scott Weber
d9cb00f9ff
Fix outgoing videos, voice notes and files
2023-10-26 14:39:27 -04:00
Scott Weber
cffb67c4af
Add BadCredentials error message
2023-10-26 14:26:24 -04:00
Scott Weber
c466fd9032
Handle unhandled messages with notice
2023-10-26 13:49:33 -04:00
Scott Weber
f54556b96f
Small tidy
2023-10-22 23:47:09 -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
Scott Weber
e4f386b54b
Fix AllLoggedIn() to use user.Scan()
2023-10-18 13:12:20 -04:00
Scott Weber
8b991e0ad6
Stop trying to handle SS plaintext
...
It's a DecryptionErrorMessage to retry key sending for SenderKey
messages I think, so not needed right now. Also the crazy scenario my
devices were in that allowed me to test this is now resolved so I can't
easily test this anymore.
2023-10-11 18:14:42 -04:00
Scott Weber
984699760f
Try unmarshalling SS plaintext message again
2023-10-11 14:55:04 -04:00
Scott Weber
58b92be3ca
Don't send delivered receipts so aggressively, and try parsing SS plaintext
2023-10-11 14:47:11 -04:00
Tulir Asokan
f6652b3509
Fix scanning non-logged-in users from db
2023-10-06 16:16:35 +03:00
Tulir Asokan
ab22788a26
Use bash for default docker run
2023-10-04 12:41:56 +03:00
Tulir Asokan
0e518f777f
Fix inserting users on postgres
2023-10-04 12:28:25 +03:00
Tulir Asokan
a0110915d5
Remove redundant notice_room column
2023-10-04 12:28:25 +03:00
Scott Weber
b308af43c4
Fix TRANSIENT_DISCONNECT on shutdown again
...
errors.Wrap would return nil if err was nil, while fmt.Errorf does not
2023-10-02 00:30:09 -04:00
Scott Weber
5d00781973
Handle delivery receipts and forward to matrix as MSS
2023-10-02 00:18:36 -04:00
Scott Weber
810c83234f
Handle sync read messages from other signal devices
2023-10-01 23:30:12 -04:00
Scott Weber
cb905c07c4
Send read syncs to other signal devices
2023-10-01 23:06:27 -04:00
Scott Weber
48f48ab02b
Bridge read receipts matrix -> signal
2023-10-01 22:34:12 -04:00
Scott Weber
278343049b
Gotta send the receipt to Matrix from the right intent
2023-10-01 12:07:26 -04:00