diff --git a/message/message.go b/message/message.go index 0b6350304..7a2dbdeec 100644 --- a/message/message.go +++ b/message/message.go @@ -397,14 +397,16 @@ func ParseMessageElems(elems []*msg.Elem) []IMessageElement { } } if elem.VideoFile != nil { - return append(res, &ShortVideoElement{ - Name: string(elem.VideoFile.FileName), - Uuid: elem.VideoFile.FileUuid, - Size: elem.VideoFile.GetFileSize(), - ThumbSize: elem.VideoFile.GetThumbFileSize(), - Md5: elem.VideoFile.FileMd5, - ThumbMd5: elem.VideoFile.GetThumbFileMd5(), - }) + return []IMessageElement{ + &ShortVideoElement{ + Name: string(elem.VideoFile.FileName), + Uuid: elem.VideoFile.FileUuid, + Size: elem.VideoFile.GetFileSize(), + ThumbSize: elem.VideoFile.GetThumbFileSize(), + Md5: elem.VideoFile.FileMd5, + ThumbMd5: elem.VideoFile.GetThumbFileMd5(), + }, + } } if elem.Text != nil { if len(elem.Text.Attr6Buf) == 0 {