mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 10:30:13 +08:00
Merge remote-tracking branch 'mirai/dev' into dev
This commit is contained in:
commit
b3af7a14cf
@ -85,6 +85,7 @@ mirai 是一个在全平台下运行,提供 QQ Android 协议支持的高效
|
|||||||
- 闪照
|
- 闪照
|
||||||
- 撤回群员消息
|
- 撤回群员消息
|
||||||
- 自定义消息
|
- 自定义消息
|
||||||
|
- 音乐分享
|
||||||
|
|
||||||
**群相关**
|
**群相关**
|
||||||
- 群列表
|
- 群列表
|
||||||
|
@ -65,6 +65,13 @@ internal abstract class SendMessageHandler<C : Contact> {
|
|||||||
groupCard = senderName // Cinnamon
|
groupCard = senderName // Cinnamon
|
||||||
) else null
|
) else null
|
||||||
|
|
||||||
|
// For ForwardMessage display
|
||||||
|
val ForwardMessage.INode.groupInfo: MsgComm.GroupInfo
|
||||||
|
get() = MsgComm.GroupInfo(
|
||||||
|
groupCode = if (isToGroup) targetGroupCode!! else 0,
|
||||||
|
groupCard = senderName
|
||||||
|
)
|
||||||
|
|
||||||
val isToGroup: Boolean get() = contact is Group
|
val isToGroup: Boolean get() = contact is Group
|
||||||
|
|
||||||
suspend fun MessageChain.convertToLongMessageIfNeeded(
|
suspend fun MessageChain.convertToLongMessageIfNeeded(
|
||||||
|
@ -62,7 +62,7 @@ internal fun Collection<ForwardMessage.INode>.calculateValidationData(
|
|||||||
msgId = 1
|
msgId = 1
|
||||||
),
|
),
|
||||||
msgType = 82, // troop
|
msgType = 82, // troop
|
||||||
groupInfo = handler.groupInfo,
|
groupInfo = handler.run { chain.groupInfo },
|
||||||
isSrcMsg = false
|
isSrcMsg = false
|
||||||
),
|
),
|
||||||
msgBody = ImMsgBody.MsgBody(
|
msgBody = ImMsgBody.MsgBody(
|
||||||
|
Loading…
Reference in New Issue
Block a user