mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 09:10:11 +08:00
parent
1df5479c0b
commit
3dea0f7dd7
@ -11,7 +11,6 @@ package net.mamoe.mirai.internal.network.protocol.packet.chat
|
|||||||
|
|
||||||
import net.mamoe.mirai.contact.Group
|
import net.mamoe.mirai.contact.Group
|
||||||
import net.mamoe.mirai.internal.contact.takeSingleContent
|
import net.mamoe.mirai.internal.contact.takeSingleContent
|
||||||
import net.mamoe.mirai.internal.contact.uin
|
|
||||||
import net.mamoe.mirai.internal.message.OnlineMessageSourceToGroupImpl
|
import net.mamoe.mirai.internal.message.OnlineMessageSourceToGroupImpl
|
||||||
import net.mamoe.mirai.internal.network.QQAndroidClient
|
import net.mamoe.mirai.internal.network.QQAndroidClient
|
||||||
import net.mamoe.mirai.internal.network.protocol.packet.OutgoingPacket
|
import net.mamoe.mirai.internal.network.protocol.packet.OutgoingPacket
|
||||||
@ -34,7 +33,7 @@ internal object SendMessageMultiProtocol {
|
|||||||
contract { callsInPlace(sourceCallback, InvocationKind.AT_MOST_ONCE) }
|
contract { callsInPlace(sourceCallback, InvocationKind.AT_MOST_ONCE) }
|
||||||
|
|
||||||
message.takeSingleContent<MusicShare>()?.let { musicShare ->
|
message.takeSingleContent<MusicShare>()?.let { musicShare ->
|
||||||
return listOf(MusicSharePacket(client, musicShare, group.uin, targetKind = MessageSourceKind.GROUP))
|
return listOf(MusicSharePacket(client, musicShare, group.id, targetKind = MessageSourceKind.GROUP))
|
||||||
}
|
}
|
||||||
|
|
||||||
return MessageSvcPbSendMsg.createToGroup(client, group, message, fragmented, sourceCallback)
|
return MessageSvcPbSendMsg.createToGroup(client, group, message, fragmented, sourceCallback)
|
||||||
|
Loading…
Reference in New Issue
Block a user