From 188086e31eb843290f8026e618d29a5fd6c152d6 Mon Sep 17 00:00:00 2001 From: CwkDark <177549718+CwkDark@users.noreply.github.com> Date: Sat, 31 Aug 2024 06:08:08 +0800 Subject: [PATCH] [Core] Fix image in the forward does not have a url (#568) * [Core] Fix image in the forward does not have a url * remove some thing --- .../Context/Logic/Implementation/MessagingLogic.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs b/Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs index 98839d1c0..a33dca7e5 100644 --- a/Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs +++ b/Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs @@ -35,6 +35,7 @@ namespace Lagrange.Core.Internal.Context.Logic.Implementation; [EventSubscribe(typeof(FriendSysRequestEvent))] [EventSubscribe(typeof(FriendSysPokeEvent))] [EventSubscribe(typeof(LoginNotifyEvent))] +[EventSubscribe(typeof(MultiMsgDownloadEvent))] [BusinessLogic("MessagingLogic", "Manage the receiving and sending of messages and notifications")] internal class MessagingLogic : LogicBase { @@ -210,6 +211,18 @@ public override async Task Incoming(ProtocolEvent e) Collection.Invoker.PostEvent(deviceArgs); break; } + case MultiMsgDownloadEvent multi: + { + if (multi.Chains != null) + { + foreach (var chain in multi.Chains) + { + if (chain.Count == 0) return; + await ResolveIncomingChain(chain); + } + } + break; + } } }