Skip to content

Commit

Permalink
[All] fix get msg cannot obtain resid (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkRRb authored Oct 18, 2024
1 parent 28d0cdd commit 5270314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lagrange.Core/Message/Entity/MultiMsgEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class MultiMsgEntity : IMessageEntity
{
private static readonly XmlSerializer Serializer = new(typeof(MultiMessage));

internal string? ResId { get; set; }
public string? ResId { get; set; }

[Obsolete("No more need for group uin")]
public uint? GroupUin { get; set; }
Expand Down Expand Up @@ -118,7 +118,7 @@ IEnumerable<Elem> IMessageEntity.PackElement()
{
if (elem.RichMsg is { ServiceId: 35, Template1: not null } richMsg)
{
var xml = ZCompression.ZDecompress(richMsg.Template1[1..]);
var xml = ZCompression.ZDecompress(richMsg.Template1.AsSpan(1));
if ((MultiMessage?)Serializer.Deserialize(new MemoryStream(xml)) is { } xmlEntity)
{
return new MultiMsgEntity(xmlEntity.ResId);
Expand Down

0 comments on commit 5270314

Please sign in to comment.