소스 검색

signal: ignored profile key updates

Sumner Evans 3 년 전
부모
커밋
023df3ca99
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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: