mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-21 07:56:56 +08:00
Fix #1192 again, taken suggestion from @AdoptOSS and @takayama-lily
This commit is contained in:
parent
69a48987e7
commit
95a36443fe
@ -39,7 +39,7 @@ internal data class MemberInfoImpl(
|
||||
nick = jceInfo.nick,
|
||||
permission = when {
|
||||
jceInfo.memberUin == groupOwnerId -> MemberPermission.OWNER
|
||||
jceInfo.dwFlag == 1L -> MemberPermission.ADMINISTRATOR
|
||||
jceInfo.dwFlag?.takeLowestOneBit() == 1L -> MemberPermission.ADMINISTRATOR
|
||||
else -> MemberPermission.MEMBER
|
||||
},
|
||||
remark = jceInfo.autoRemark.orEmpty(),
|
||||
|
Loading…
Reference in New Issue
Block a user