From da5f7f8b1dadd2ec13744f45850d79798d6b1631 Mon Sep 17 00:00:00 2001 From: Linwenxuan <116782992+Linwenxuan05@users.noreply.github.com> Date: Thu, 26 Oct 2023 14:17:03 +0800 Subject: [PATCH] [Core] Added MessageId for MessageChain.cs --- Lagrange.Core/Message/MessageChain.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Lagrange.Core/Message/MessageChain.cs b/Lagrange.Core/Message/MessageChain.cs index 437f161a5..473a28138 100644 --- a/Lagrange.Core/Message/MessageChain.cs +++ b/Lagrange.Core/Message/MessageChain.cs @@ -10,6 +10,8 @@ public sealed class MessageChain : List public uint FriendUin { get; } + public ulong MessageId { get; } + public BotFriend? FriendInfo { get; internal set; } public BotGroupMember? GroupMemberInfo { get; internal set; } @@ -28,13 +30,14 @@ public sealed class MessageChain : List #endregion - internal MessageChain(uint friendUin, string selfUid, string friendUid) + internal MessageChain(uint friendUin, string selfUid, string friendUid, ulong messageId = 0) { GroupUin = null; FriendUin = friendUin; Sequence = 0; // unuseful at there SelfUid = selfUid; Uid = friendUid; + MessageId = messageId; IsGroup = false; Elements = new List(); } @@ -48,12 +51,13 @@ internal MessageChain(uint groupUin) Elements = new List(); } - internal MessageChain(uint groupUin, uint friendUin, uint sequence) + internal MessageChain(uint groupUin, uint friendUin, uint sequence, ulong messageId = 0) { GroupUin = groupUin; FriendUin = friendUin; Sequence = sequence; Uid = null; + MessageId = messageId; IsGroup = true; Elements = new List(); }