feat(auto-tell-tabs): emit MessageProcessed event after tab routing

This commit is contained in:
2026-05-02 12:57:49 +02:00
parent 92bb368d2b
commit 133f5c536f
+9
View File
@@ -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<Message>? 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