From ad03f074c603f38f9319411d785e598e8a92e42c Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sat, 25 Jan 2025 16:21:54 +0100 Subject: , --- src/main/kotlin/datamodel/ChatType.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/datamodel/ChatType.kt b/src/main/kotlin/datamodel/ChatType.kt index 31ec2e7..b157de9 100644 --- a/src/main/kotlin/datamodel/ChatType.kt +++ b/src/main/kotlin/datamodel/ChatType.kt @@ -135,7 +135,8 @@ object ChatCategoryArbiter : SubscriptionTarget { @UltraSubscribe fun onVisibleChatMessage(event: VisibleChatMessageAddedEvent) { val cl = event.chatLine.category - if (selectedCategory.id == specialAll)return + if (selectedCategory.id == specialAll) + return if (selectedCategory !in cl.categories) event.cancel() } -- cgit