Explorar el Código

disappearing messages: fix bug where redactions caused the expiration setting to be lost

Sumner Evans hace 3 años
padre
commit
f9e1bbbb75
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      mautrix_signal/signal.py

+ 1 - 1
mautrix_signal/signal.py

@@ -141,7 +141,7 @@ class SignalHandler(SignaldClient):
             await portal.update_info(user, msg.group)
         if msg.remote_delete:
             await portal.handle_signal_delete(sender, msg.remote_delete.target_sent_timestamp)
-        if msg.expires_in_seconds is not None:
+        if msg.expires_in_seconds is not None and not msg.remote_delete:
             await portal.update_expires_in_seconds(sender, msg.expires_in_seconds)
 
     @staticmethod