1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

feat: add GroupID field in reply message

This commit is contained in:
wdvxdr 2021-10-11 21:02:17 +08:00
parent 2cdb7407f9
commit a3eacd706b
No known key found for this signature in database
GPG Key ID: 703F8C071DE7A1B6
2 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,7 @@ type GroupFileElement struct {
type ReplyElement struct {
ReplySeq int32
Sender int64
GroupID int64 // 私聊回复群聊时
Time int32
Elements []IMessageElement

View File

@ -340,6 +340,7 @@ func ParseMessageElems(elems []*msg.Elem) []IMessageElement {
ReplySeq: elem.SrcMsg.OrigSeqs[0],
Time: elem.SrcMsg.GetTime(),
Sender: elem.SrcMsg.GetSenderUin(),
GroupID: elem.SrcMsg.GetToUin(),
Elements: ParseMessageElems(elem.SrcMsg.Elems),
}
res = append(res, r)