Browse Source

Fix delivery receipts being handled as read receipts

Tulir Asokan 4 năm trước cách đây
mục cha
commit
36b1aefd45
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      mautrix_signal/signal.py

+ 1 - 1
mautrix_signal/signal.py

@@ -141,7 +141,7 @@ class SignalHandler(SignaldClient):
     @staticmethod
     async def handle_receipt(sender: 'pu.Puppet', receipt: Receipt) -> None:
         if receipt.type != ReceiptType.READ:
-            pass
+            return
         messages = await DBMessage.find_by_timestamps(receipt.timestamps)
         for message in messages:
             portal = await po.Portal.get_by_mxid(message.mx_room)