浏览代码

Sync contact when receiving profile key update

This is probably not enough to catch all profile changes, but hopefully
it at least help a bit
Tulir Asokan 2 年之前
父节点
当前提交
496736667b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mautrix_signal/signal.py

+ 1 - 1
mautrix_signal/signal.py

@@ -178,7 +178,7 @@ class SignalHandler(SignaldClient):
         addr_override: Address | None = None,
     ) -> None:
         if msg.profile_key_update:
-            self.log.debug("Ignoring profile key update")
+            asyncio.create_task(user.sync_contact(sender.address, use_cache=False))
             return
         if msg.group_v2:
             portal = await po.Portal.get_by_chat_id(msg.group_v2.id, create=True)