From 6c255161437cf87b8fb4593ad99c0f992e9611d3 Mon Sep 17 00:00:00 2001 From: Him188 Date: Tue, 7 Apr 2020 09:23:05 +0800 Subject: [PATCH] Fix permission detection on recalling self-sent message --- .../kotlin/net/mamoe/mirai/qqandroid/QQAndroidBot.common.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/QQAndroidBot.common.kt b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/QQAndroidBot.common.kt index 4ba33b2d5..4800f06ab 100644 --- a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/QQAndroidBot.common.kt +++ b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/QQAndroidBot.common.kt @@ -199,7 +199,9 @@ internal abstract class QQAndroidBotBase constructor( is MessageSourceFromGroupImpl -> source.group else -> error("stub") } - group.checkBotPermissionOperator() + if (this.id != source.fromId) { + group.checkBotPermissionOperator() + } MessageRecallEvent.GroupRecall( this, source.fromId,