From ef25fac430e7ff4318990a5180c445f77a3de201 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 19 Nov 2024 15:24:21 -0500 Subject: [PATCH] Start in forceLive if this is not a MUC --- snikket/Chat.hx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/snikket/Chat.hx b/snikket/Chat.hx index 42c165d..5373a75 100644 --- a/snikket/Chat.hx +++ b/snikket/Chat.hx @@ -898,7 +898,13 @@ class Channel extends Chat { @:allow(snikket) private function new(client:Client, stream:GenericStream, persistence:Persistence, chatId:String, uiState = Open, isBlocked = false, extensions = null, readUpToId = null, readUpToBy = null, ?disco: Caps) { super(client, stream, persistence, chatId, uiState, isBlocked, extensions, readUpToId, readUpToBy); - if (disco != null) this.disco = disco; + if (disco != null) { + this.disco = disco; + if (!disco.features.contains("http://jabber.org/protocol/muc")) { + // Not a MUC, what kind of channel is this? + forceLive = true; + } + } } @:allow(snikket)