Fix #1192 again, taken suggestion from @AdoptOSS and @takayama-lily

This commit is contained in:
sandtechnology 2021-07-08 13:21:43 +08:00 committed by Him188
parent 69a48987e7
commit 95a36443fe

View File

@ -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(),