Fix duplicated GroupRecall broadcast in recall group message

This commit is contained in:
Karlatemp 2020-12-20 15:43:08 +08:00
parent 28249b317c
commit 7796fbf2d2
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8

View File

@ -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(