浏览代码

Update mautrix_signal/portal.py

Co-authored-by: Tulir Asokan <tulir@maunium.net>
Malte E 3 年之前
父节点
当前提交
8c1214813d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mautrix_signal/portal.py

+ 1 - 1
mautrix_signal/portal.py

@@ -1696,7 +1696,7 @@ class Portal(DBPortal, BasePortal):
                     current_level = levels.get_user_level(puppet_mxid)
                     if bot_pl > current_level and bot_pl >= 50:
                         level = current_level
-                        if await u.User.get_by_address(Address(uuid=detail.uuid)):
+                        if puppet.is_real_user:
                             if current_level >= 50 and detail.role == GroupMemberRole.DEFAULT:
                                 level = 0
                             elif (