1
0
Fork 0
mirror of https://github.com/mautrix/signal.git synced 2026-05-15 05:36:53 -04:00
Commit graph

1,725 commits

Author SHA1 Message Date
Scott Weber
24cf5662d7 Migration for user table and missed NULL handling in portal table 2023-09-12 13:45:40 -04:00
Scott Weber
ec31a807e9 Fix DB code to handle NULLs in the DB 2023-09-12 11:32:55 -04:00
Tulir Asokan
2e3d50ce34 Set mx_version in upgrade 2023-09-11 16:19:34 -04:00
Tulir Asokan
aa7b6ba23f Fix version number 2023-09-11 16:14:24 -04:00
Tulir Asokan
2d731ca4fe Add db schema upgrade to fix python state store 2023-09-11 16:11:29 -04:00
Scott Weber
62eca1d8d6 Update pickle key 2023-09-11 15:54:26 -04:00
Scott Weber
9e012e9ca7 Fix DB upgrading 2023-09-11 15:53:53 -04:00
Scott Weber
5c6dbd7aee Set DB version to v12 2023-09-11 15:32:24 -04:00
Scott Weber
12f7bb9df1 Make message sending more robust, particularly in the face of bad networking 2023-09-06 00:47:08 -04:00
Scott Weber
c2460ead6b Fix out-of-bounds in web.go path check 2023-09-05 11:41:35 -04:00
Scott Weber
2007559b64 Bridge mentions from signal -> matrix (no HTML formatting yet) 2023-09-05 09:11:29 -04:00
Scott Weber
e5d58bc4ce replies from matrix -> signal (except replies to images only work on signal android :S) 2023-09-04 23:20:23 -04:00
Scott Weber
df9dc128f4 Bridge replies signal -> matrix 2023-09-04 22:00:03 -04:00
Scott Weber
617c0fca88 Store avatar hash in DB, and unset if the avatar goes away 2023-09-04 08:23:56 -04:00
Scott Weber
fdccca610b Only fetch new profile avatar if it has changed 2023-09-04 08:12:08 -04:00
Scott Weber
a12c5bb5d1 Download, decrypt, upload user profile avatar. But need to figure out caching 2023-08-31 20:17:23 -04:00
Scott Weber
f52f236780 Sending images! 2023-08-31 12:58:18 -04:00
Scott Weber
1a0df9b228 Fix heart reactions by fully qualifiying emoji going to Signal 2023-08-29 13:55:16 -04:00
Scott Weber
d5359f9e53 When sending sync messages to myself, don't send to my device, and use auth websocket 2023-08-29 13:34:55 -04:00
Scott Weber
75fb4d5f04 Add/remove variation selectors on emoji reactions as needed 2023-08-29 12:37:24 -04:00
Scott Weber
c94db17a69 MSS/Checkpoints for reactions and redactions 2023-08-29 11:31:53 -04:00
Scott Weber
e70c6f038a Bridge redactions signal -> matrix 2023-08-28 21:39:26 -04:00
Scott Weber
33ec5cc7ac Bridge redactions matrix -> signal 2023-08-28 21:24:01 -04:00
Scott Weber
ae46b7aee2 Bridge reaction redactions from matrix -> signal 2023-08-28 21:10:19 -04:00
Scott Weber
9122c32e66 Bridge reactions (but not reaction redactions) from matrix -> signal
Also some substantial message sending refactoring
2023-08-28 17:15:25 -04:00
Scott Weber
66ea2f7007 Tidy up Connect functions to make bridge states work on initial login 2023-08-28 15:34:41 -04:00
Scott Weber
988956a60b Forgot to add database/reaction.go 🤦 2023-08-28 11:11:06 -04:00
Scott Weber
1ce16f577f Update reactions when they change 2023-08-28 10:14:43 -04:00
Scott Weber
f84ae817a5 Add reactions table and handle reaction redactions 2023-08-28 10:08:08 -04:00
Scott Weber
1c50f8c1e1 Bridging reactions Signal -> Matrix (but not redacting them) 2023-08-27 16:05:05 -04:00
Scott Weber
bcb0041004 Bridge image size and filename (to make captions work) 2023-08-25 13:53:37 -04:00
Scott Weber
eb3ebdd8ff Can receive a message! (But lots to tidy up here) 2023-08-25 12:56:39 -04:00
Scott Weber
f3fad459f7 More robust bridge states, partial logout support, hopefully more robust mautrix interface code 2023-08-24 15:06:39 -04:00
Scott Weber
2cb24d197b Overhaul SignalWebsocket error handling and hook up to BridgeState 2023-08-22 11:54:35 -04:00
Scott Weber
0aa0072869 Strip non-printable characters from group titles 2023-08-18 14:20:23 -04:00
Scott Weber
30aa6b41c0 Fix deadlock in websocket code
- Readloop goroutine gets a new request (incoming message), sends to
  incoming loop
- Incoming request loop goroutine calls incoming message handler
- Incoming message handler needs group info, sends a WS request
- Sendloop goroutine gets request, sends on WS, stores response channel
  in map
- Incoming message handler is blocked waiting on response on it's
  response channel
- Readloop gets some other request, tries to send to incoming loop, but
  gets blocked on sending to incoming request channel because it's
  unbuffered and that goroutine is still blocked waiting on group info
- Server responds with response to group info request, but readloop is
  blocked now forever

The fix: give the incomingRequestChan a large (10000) buffer. Now:

- Readloop goroutine gets a new request (incoming message), sends to
  incoming loop
- Incoming request loop goroutine calls incoming message handler
- Incoming message handler needs group info, sends a WS request
- Sendloop goroutine gets request, sends on WS, stores response channel
  in map
- Incoming message handler is blocked waiting on response on it's
  response channel
- Readloop gets some other request and successfully buffers it in the
  incoming request channel
- Server responds with response to group info request, readloop is *not*
  blocked, and can pass the response down the response channel that the
  incoming message handler is blocked on, and it can finish up
- Incoming request loop is free to continue processing incoming requests
2023-08-18 12:41:21 -04:00
Scott Weber
2fc409511e Add CONNECTED bridge state and more logging 2023-08-18 10:57:19 -04:00
Scott Weber
c6586f614a String extraneous whitespace from group titles 2023-08-17 13:45:19 -04:00
Scott Weber
0b40b6ed8d Change check for nil puppet 2023-08-17 13:32:51 -04:00
Scott Weber
3410938890 Fix warning 2023-08-17 12:34:10 -04:00
Scott Weber
ec994fe4c5 Undo part of double puppet fix 2023-08-17 01:42:00 -04:00
Scott Weber
dc317afe48 Fix double puppetting (at least partially) 2023-08-17 00:58:58 -04:00
Scott Weber
d8913fd523 Gotta unpad decrypted ProvisionMessage with PKCS7 2023-08-16 23:55:17 -04:00
Scott Weber
0bf1cff531 Handle 410 GONE when sending a message 2023-08-16 19:18:11 -04:00
Scott Weber
a94785c81d Don't log plain text message content :S 2023-08-16 15:37:04 -04:00
Scott Weber
5b102b6480 Prevent panic if we can't find profileKey 2023-08-16 15:28:47 -04:00
Scott Weber
30fee204f7 Port messagetracking.go from whatsapp bridge and send MSS status! 2023-08-15 22:58:53 -04:00
Scott Weber
b5dc4c8a9d Don't send multiple sync messages on group message send 2023-08-15 21:20:38 -04:00
Scott Weber
7a35632eed Fix test 2023-08-15 21:20:21 -04:00
Scott Weber
1157766d10 Add stub for kyber prekey store to fix tests 2023-07-31 21:25:45 -07:00