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

1,765 commits

Author SHA1 Message Date
Sumner Evans
72a1499706
disappearing messages: only process on messages
All other Signal messages cannot set the disappearing message timer.
2021-12-15 02:23:00 -07:00
Sumner Evans
f9e1bbbb75
disappearing messages: fix bug where redactions caused the expiration setting to be lost 2021-12-14 14:40:45 -07:00
Tulir Asokan
1884f00170 Move to future annotations and clean up things 2021-12-14 12:58:27 +02:00
Tulir Asokan
414904fd30 Merge remote-tracking branch 'origin/blacken-everything' 2021-12-14 12:11:35 +02:00
Sumner Evans
899a5acd59
formatting: run isort across the codebase 2021-12-13 01:31:27 -07:00
Sumner Evans
4f31ce41e0
formatting: use black and add CI job to enforce styling 2021-12-13 01:28:20 -07:00
Tulir Asokan
f7176a4f77 Move relay stuff to mautrix-python 2021-12-12 12:18:21 +02:00
Sumner Evans
9d8eafeaf9
ROADMAP: add disappearing messages 2021-12-10 11:57:25 -07:00
Sumner Evans
e13206318b
Merge pull request #182 from mautrix/sumner/bri-1204-support-disappearing-messages-in-signal
disappearing messages: add support for both inbound and outbound
2021-12-09 15:42:48 -07:00
Sumner Evans
b1e27324a6
disappearing messages: don't spawn expiration events for every message every read receipt 2021-12-09 11:57:15 -07:00
Sumner Evans
4512f5dec3
disappearing messages: add config option to disable in groups 2021-12-09 09:53:02 -07:00
Sumner Evans
e51b580461
portal._expire_event: raise exception if portal not found 2021-12-09 09:25:53 -07:00
Sumner Evans
0c73ac48f9
db/disappearing_message: rename table to singular 2021-12-09 09:24:02 -07:00
Sumner Evans
53c6aab667
db/disappearing_message: remove delete_all method 2021-12-09 09:22:04 -07:00
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