Browse Source

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 years ago
parent
commit
496736667b
1 changed files with 1 additions and 1 deletions
  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,
         addr_override: Address | None = None,
     ) -> None:
     ) -> None:
         if msg.profile_key_update:
         if msg.profile_key_update:
-            self.log.debug("Ignoring profile key update")
+            asyncio.create_task(user.sync_contact(sender.address, use_cache=False))
             return
             return
         if msg.group_v2:
         if msg.group_v2:
             portal = await po.Portal.get_by_chat_id(msg.group_v2.id, create=True)
             portal = await po.Portal.get_by_chat_id(msg.group_v2.id, create=True)