Skip to content

Commit

Permalink
[Core] Add Sequence for Private Message
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan authored and Linwenxuan committed Oct 26, 2023
1 parent da5f7f8 commit 85daa75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Lagrange.Core/Internal/Packets/Action/SendMessageResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ internal class SendMessageResponse

[ProtoMember(10)] public uint Field10 { get; set; }

[ProtoMember(11)] public uint? Sequence { get; set; }
[ProtoMember(11)] public uint? GroupSequence { get; set; }

[ProtoMember(12)] public uint Timestamp2 { get; set; }

[ProtoMember(14)] public uint Field14 { get; set; }
[ProtoMember(14)] public uint PrivateSequence { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected override bool Parse(byte[] input, BotKeystore keystore, BotAppInfo app
var result = new MessageResult
{
Result = (uint)response.Result,
Sequence = response.Sequence,
Sequence = response.GroupSequence ?? response.PrivateSequence,
Timestamp = response.Timestamp1,
};

Expand Down

0 comments on commit 85daa75

Please sign in to comment.