Parcourir la source

signal: ignored profile key updates

Sumner Evans il y a 3 ans
Parent
commit
023df3ca99
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      mautrix_signal/signal.py

+ 3 - 0
mautrix_signal/signal.py

@@ -81,6 +81,9 @@ class SignalHandler(SignaldClient):
 
     async def handle_message(self, user: 'u.User', sender: 'pu.Puppet', msg: MessageData,
                              addr_override: Optional[Address] = None) -> None:
+        if msg.profile_key_update:
+            self.log.debug("Ignoring profile key update")
+            return
         if msg.group_v2:
             portal = await po.Portal.get_by_chat_id(msg.group_v2.id, create=True)
         elif msg.group: