Skip to content

Commit

Permalink
Start in forceLive if this is not a MUC
Browse files Browse the repository at this point in the history
  • Loading branch information
singpolyma committed Nov 19, 2024
1 parent e2be8bc commit ef25fac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion snikket/Chat.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ef25fac

Please sign in to comment.