mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 02:20:14 +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
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user