Fix permission detection on recalling self-sent message

This commit is contained in:
Him188 2020-04-07 09:23:05 +08:00
parent 366de98a6c
commit 6c25516143

View File

@ -199,7 +199,9 @@ internal abstract class QQAndroidBotBase constructor(
is MessageSourceFromGroupImpl -> source.group is MessageSourceFromGroupImpl -> source.group
else -> error("stub") else -> error("stub")
} }
group.checkBotPermissionOperator() if (this.id != source.fromId) {
group.checkBotPermissionOperator()
}
MessageRecallEvent.GroupRecall( MessageRecallEvent.GroupRecall(
this, this,
source.fromId, source.fromId,