1
0
Fork 0
mirror of https://github.com/mautrix/signal.git synced 2026-05-14 21:26:54 -04:00
Commit graph

1,601 commits

Author SHA1 Message Date
Sumner Evans
2d06b7c20b
disappearing messages: format correctly when message timer turned off 2021-12-09 08:45:40 -07:00
Sumner Evans
15836c8319
deps/mautrix: update to 0.13.0 2021-12-09 08:45:10 -07:00
Sumner Evans
2ee27d6056
Merge pull request #181 from mautrix/unregistered-failures-non-fatal
mausignald/signald: make unregisteredFailures non-fatal
2021-12-09 08:33:32 -07:00
Sumner Evans
8d70a664ac
disappearing messages: refactor init_cls to not be async
Introduces a new function that gets called at startup instead.
2021-12-09 08:31:23 -07:00
Sumner Evans
9721ce0235
matrix, portal: fix imports and use time.time() instead of datetime.now().timestamp 2021-12-09 08:25:39 -07:00
Sumner Evans
b962176166
disappearing messages: combine db migrations 2021-12-09 08:21:59 -07:00
Sumner Evans
125d9cdd45
disappearing messages update notice: use mautrix.util.format_duration 2021-12-09 08:20:37 -07:00
Sumner Evans
ae0a0c5f57
disappearing messages: add lock around redaction logic
This will avoid race conditions when there are multiple timers going on at once
2021-12-09 03:37:03 -07:00
Sumner Evans
f62f5252a9
disappearing messages: handle inbound and outbound disappearing messages
When a message is sent or recieved in a Signal chat that has
disappearing messages enabled, it will automatically be redacted by the
bridge after the time configured on the room. However, note that the
countdown timer will only start once the room has been read.

The main mechanism for this is using async functions that just wait the
configured number of seconds before redacting. However, there we also
store all of the state necessary for determining when to redact a
message in the database in case a restart occurs. In the event of a
restart, we can resume waiting for the expiration (or redact immediately
if we are past the expiration timestamp).

This change also adds m.notice notifications for the user when the
disappearing messages setting changes on the Signal chat.
2021-12-09 03:31:34 -07:00
Sumner Evans
27cedcdc16
mausignald/signald: make unregisteredFailures non-fatal
The only exception is when the message fails to send to anyone in the group.
2021-12-08 16:30:14 -07:00
Sumner Evans
e3556318d4
Merge pull request #180 from mautrix/ignore-profile-key-updates
signal: ignored profile key updates
2021-12-08 08:23:40 -07:00
Sumner Evans
023df3ca99
signal: ignored profile key updates 2021-12-08 08:11:55 -07:00
Tulir Asokan
d7c81ea81a Fix portals not being stored in by_chat_id cache correctly 2021-12-08 12:43:37 +02:00
Tulir Asokan
3cde418151 Add debug log to detect duplicate Portal instances 2021-12-08 12:13:06 +02:00
Tulir Asokan
35da90e755 Update mautrix-python 2021-12-08 11:54:34 +02:00
Tulir Asokan
097f9eb79a Adjust get_by_chat_id to make sure the async getter lock works 2021-12-08 11:53:42 +02:00
Tulir Asokan
f93a76a753 Add warning about SQLite to config 2021-12-05 17:02:34 +02:00
Tulir Asokan
b4e5030ded Fix redaction checkpoints 2021-11-30 12:18:37 +02:00
Tulir Asokan
5593333d13 Bump version to 0.2.1 v0.2.1 2021-11-28 20:01:36 +02:00
Tulir Asokan
6c113b5746 Update BridgeState import path 2021-11-28 20:00:49 +02:00
Tulir Asokan
597121fe29 Update dependencies 2021-11-19 18:15:26 +02:00
Will Hunt
d2686c545e
Add connection_limit sample config 2021-11-18 12:37:03 +00:00
Tulir Asokan
e9c60936b9 Fix UUID parsing in sqlite 2021-11-16 01:18:05 +02:00
Tulir Asokan
2b7fb8f18d Move filter_matrix_event logic to mautrix-python 2021-11-16 00:56:02 +02:00
Sumner Evans
7c86302e84
Merge pull request #153 from tadzik/tadzik/make-registration-disablable-2
Make it possible to disable device registration from the config
2021-11-15 08:43:26 -07:00
Tadeusz Sośnierz
d72ac03645 Make it possible to disable device registration from the config 2021-11-15 10:34:10 +01:00
Sumner Evans
2e57810e96
Merge pull request #155 from mautrix/sumner/bri-729-add-configuration-to-allow-bridge-to
Use message send checkpoints
2021-11-11 21:58:50 -07:00
Sumner Evans
2e7127d6b1
Send remote checkpoint on success/failure of all Signal messages 2021-11-11 13:09:42 -07:00
Sumner Evans
b8545e41dd
Merge pull request #169 from vector-im/hs/add-randomness-to-sync
Add some jitter to the sync loop
2021-11-11 08:06:25 -07:00
Sumner Evans
c527b5ae66
add config option for message_send_checkpoint_endpoint 2021-11-10 21:39:07 -07:00
Sumner Evans
68aab8c0e9
deps/mautrix: ^0.11.1 -> ^0.11.2 2021-11-10 21:39:07 -07:00
Will Hunt
fdafc69233
Update mautrix_signal/__main__.py
Co-authored-by: Sumner Evans <me@sumnerevans.com>
2021-11-10 15:21:01 +00:00
Will Hunt
ebe76e884b Err, you cannot sleep for negative seconds... 2021-11-10 13:17:23 +00:00
Will Hunt
0c1424a759 Add some jitter to the sync loop 2021-11-10 12:59:32 +00:00
Tulir Asokan
cc7883ff8c Update to mautrix-python v0.11 and add experimental support for SQLite
Closes #166

Co-authored-by: Will Hunt <willh@matrix.org>
2021-11-10 12:41:37 +02:00
Sumner Evans
2acdc7f27e
Merge pull request #154 from mautrix/sumner/bri-772
send: handle `proof_required_failure`
2021-11-02 12:00:12 -06:00
Sumner Evans
b0f230362e
send: handle proof_required_failure 2021-11-02 11:45:39 -06:00
Sumner Evans
d0382ccfad
Wait to report UNKNOWN_ERROR on websocket FAILURE state 2021-11-01 14:20:37 -06:00
Sumner Evans
085ae8050c
Merge pull request #152 from mautrix/sumner/bri-794-disable-federation-on-all-bridged-rooms
federation: add option to disable federation on portal rooms
2021-11-01 10:29:29 -06:00
Sumner Evans
3cda37f8bb
federation: add option to disable federation on portal rooms 2021-10-30 11:09:23 -06:00
Sumner Evans
9882785e3b
portal.handle_matrix_message: fix error when no exceptions 2021-10-25 16:06:03 -06:00
Sumner Evans
feb6b0296a
Merge pull request #146 from justinbot/justinbot/welcome-text-config
Add example config for custom welcome messages
2021-10-25 12:00:13 -06:00
Justin Carlson
f78b6586b1
Update example config
Co-authored-by: Tulir Asokan <tulir@maunium.net>
2021-10-23 12:11:49 -04:00
Sumner Evans
bb95a4120d
Merge pull request #147 from mautrix/parse-internal-errors
link_wait: return 400 if signald's websocket disconnects while finishing link
2021-10-22 16:22:55 -06:00
Sumner Evans
df9a556b12
link_wait: return 400 if signald's websocket disconnects while finishing link 2021-10-22 15:12:28 -06:00
Justin Carlson
ee61cae3de Add example config for welcome messages. 2021-10-22 12:12:50 -04:00
Tulir Asokan
181f87ab25 Update power levels when migrating phone number -> uuid puppet. Fixes #140 2021-10-21 11:21:57 +03:00
Tulir Asokan
e4de70e3ca Get cached profiles from signald but request it more often 2021-10-21 11:08:42 +03:00
Tulir Asokan
6351530623 Store number in puppet table if found 2021-10-21 11:07:38 +03:00
Tulir Asokan
4341909a5c Add command to get group invite link 2021-10-21 10:54:39 +03:00