mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-18 15:19:19 +08:00
Fix duplicated GroupRecall broadcast in recall group message
This commit is contained in:
parent
28249b317c
commit
7796fbf2d2
@ -278,16 +278,6 @@ internal open class MiraiImpl : IMirai, LowLevelApiAccessor {
|
|||||||
if (bot.id != source.fromId) {
|
if (bot.id != source.fromId) {
|
||||||
group.checkBotPermission(MemberPermission.ADMINISTRATOR)
|
group.checkBotPermission(MemberPermission.ADMINISTRATOR)
|
||||||
}
|
}
|
||||||
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
|
|
||||||
MessageRecallEvent.GroupRecall(
|
|
||||||
bot,
|
|
||||||
source.fromId,
|
|
||||||
source.ids,
|
|
||||||
source.internalIds,
|
|
||||||
source.time,
|
|
||||||
null,
|
|
||||||
group
|
|
||||||
).broadcast()
|
|
||||||
|
|
||||||
network.run {
|
network.run {
|
||||||
PbMessageSvc.PbMsgWithDraw.createForGroupMessage(
|
PbMessageSvc.PbMsgWithDraw.createForGroupMessage(
|
||||||
|
Loading…
Reference in New Issue
Block a user