From 133f5c536f90b73a144c9bbce3f00d1e9304f717 Mon Sep 17 00:00:00 2001 From: JonKazama-Hellion Date: Sat, 2 May 2026 12:57:49 +0200 Subject: [PATCH] feat(auto-tell-tabs): emit MessageProcessed event after tab routing --- ChatTwo/MessageManager.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ChatTwo/MessageManager.cs b/ChatTwo/MessageManager.cs index b74179b..e81075d 100644 --- a/ChatTwo/MessageManager.cs +++ b/ChatTwo/MessageManager.cs @@ -50,6 +50,13 @@ internal class MessageManager : IAsyncDisposable } } + // Hellion Chat — Auto-Tell-Tabs hook. Fires after a fully processed + // message has been routed to all matching persistent tabs and stored + // in the database. The AutoTellTabsService subscribes to spawn or + // refresh temp tabs without having to wedge itself into ProcessMessage + // directly. + public event Action? MessageProcessed; + internal unsafe MessageManager(Plugin plugin) { Plugin = plugin; @@ -266,6 +273,8 @@ internal class MessageManager : IAsyncDisposable if (tab.Matches(message)) tab.AddMessage(message, unread); } + + MessageProcessed?.Invoke(message); } internal class NameFormatting