Browse Source

Fix backfilling in direct chats without double puppeting

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

+ 1 - 1
mautrix_instagram/puppet.py

@@ -86,7 +86,7 @@ class Puppet(DBPuppet, BasePuppet):
         return self.intent
 
     def need_backfill_invite(self, portal: 'p.Portal') -> bool:
-        return (portal.other_user_pk != self.pk and self.is_real_user
+        return (portal.other_user_pk != self.pk and (self.is_real_user or portal.is_direct)
                 and self.config["bridge.backfill.invite_own_puppet"])
 
     async def update_info(self, info: BaseResponseUser, source: 'u.User') -> None: