From 02d160a34d2fa50f8ca3bf4db4ba4a479af09de8 Mon Sep 17 00:00:00 2001 From: dogdie233 Date: Mon, 26 Aug 2024 08:18:27 +0800 Subject: [PATCH] [Core] fix: #545 (#546) --- Lagrange.Core/Message/Entity/ImageEntity.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lagrange.Core/Message/Entity/ImageEntity.cs b/Lagrange.Core/Message/Entity/ImageEntity.cs index 01814e675..63468767a 100644 --- a/Lagrange.Core/Message/Entity/ImageEntity.cs +++ b/Lagrange.Core/Message/Entity/ImageEntity.cs @@ -88,7 +88,7 @@ IEnumerable IMessageEntity.PackElement() IMessageEntity? IMessageEntity.UnpackElement(Elem elems) { - if (elems.CommonElem is { BusinessType: 20 or 10 } common) + if (elems.CommonElem is { ServiceType: 48, BusinessType: 20 or 10 } common) { var extra = Serializer.Deserialize(common.PbElem.AsSpan()); var index = extra.MsgInfoBody[0].Index;