1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00
This commit is contained in:
Mrs4s 2021-01-07 23:57:57 +08:00
commit 6a2543d5c2
3 changed files with 6 additions and 4 deletions

View File

@ -499,7 +499,7 @@ func (c *QQClient) GetForwardMessage(resId string) *message.ForwardMessage {
ret = &message.ForwardMessage{Nodes: []*message.ForwardNode{}}
)
for _, iter := range m.Items {
if iter.GetFileName() == "MultiMsg" {
if iter.GetFileName() == m.FileName {
item = iter
}
}

View File

@ -586,6 +586,7 @@ func genForwardTemplate(resId, preview, title, brief, source, summary string, ts
}
}
return &message.ForwardElement{
FileName: strconv.FormatInt(ts, 10),
Content: template,
ResId: resId,
Items: items,

View File

@ -105,9 +105,10 @@ type ServiceElement struct {
}
type ForwardElement struct {
Content string
ResId string
Items []*msg.PbMultiMsgItem
FileName string
Content string
ResId string
Items []*msg.PbMultiMsgItem
}
type LightAppElement struct {