Shamrock: 修复群禁言事件群号获取错误 #148

This commit is contained in:
owo233 2023-12-10 01:21:38 +08:00
parent 85cdc86b07
commit 4dafa75944
No known key found for this signature in database
GPG Key ID: 5D538586B03AFDAB

View File

@ -436,7 +436,7 @@ internal object PrimitiveListener {
} }
private suspend fun onGroupBan(msgTime: Long, pb: ProtoMap) { private suspend fun onGroupBan(msgTime: Long, pb: ProtoMap) {
val groupCode = pb[1, 1, 1].asULong val groupCode = pb[1, 3, 2, 1].asULong
val operatorUid = pb[1, 3, 2, 4].asUtf8String val operatorUid = pb[1, 3, 2, 4].asUtf8String
val targetUid = pb[1, 3, 2, 5, 3, 1].asUtf8String val targetUid = pb[1, 3, 2, 5, 3, 1].asUtf8String
val duration = pb[1, 3, 2, 5, 3, 2].asInt val duration = pb[1, 3, 2, 5, 3, 2].asInt