Эх сурвалжийг харах

Add config option for receiving ephemeral events with MSC2409

Tulir Asokan 4 жил өмнө
parent
commit
545369f324

+ 5 - 0
mautrix_signal/example-config.yaml

@@ -54,6 +54,11 @@ appservice:
     # Example: "+signal:example.com". Set to false to disable.
     community_id: false
 
+    # Whether or not to receive ephemeral events via appservice transactions.
+    # Requires MSC2409 support (i.e. Synapse 1.22+).
+    # You should disable bridge -> sync_with_custom_puppets when this is enabled.
+    ephemeral_events: false
+
     # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
     as_token: "This value is generated when generating the registration"
     hs_token: "This value is generated when generating the registration"

+ 1 - 1
mautrix_signal/matrix.py

@@ -42,7 +42,7 @@ class MatrixHandler(BaseMatrixHandler):
 
     def filter_matrix_event(self, evt: Event) -> bool:
         if not isinstance(evt, (ReactionEvent, MessageEvent, StateEvent, EncryptedEvent,
-                                RedactionEvent)):
+                                RedactionEvent, ReceiptEvent, TypingEvent)):
             return True
         return (evt.sender == self.az.bot_mxid
                 or pu.Puppet.get_id_from_mxid(evt.sender) is not None)