diff --git a/Lagrange.Core/Message/Entity/ForwardEntity.cs b/Lagrange.Core/Message/Entity/ForwardEntity.cs index 052efbbec..88b916f7d 100644 --- a/Lagrange.Core/Message/Entity/ForwardEntity.cs +++ b/Lagrange.Core/Message/Entity/ForwardEntity.cs @@ -13,7 +13,7 @@ public class ForwardEntity : IMessageEntity public uint TargetUin { get; internal set; } - private List Elements { get; } + internal List Elements { get; } private string? SelfUin { get; set; } diff --git a/Lagrange.Core/Message/MessagePacker.cs b/Lagrange.Core/Message/MessagePacker.cs index fd9c643ef..85af10c2b 100644 --- a/Lagrange.Core/Message/MessagePacker.cs +++ b/Lagrange.Core/Message/MessagePacker.cs @@ -234,6 +234,8 @@ private static MessageChain ParseChain(PushMsgBody message) message.ContentHead.Sequence ?? 0, message.ContentHead.NewId ?? 0); + if (message.Body?.RichText?.Elems is { } elems) chain.Elements.AddRange(elems); + chain.Time = DateTimeOffset.FromUnixTimeSeconds(message.ContentHead.Timestamp ?? 0).DateTime; return chain;