mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +08:00
Fix permission detection on recalling self-sent message
This commit is contained in:
parent
366de98a6c
commit
6c25516143
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user