fix channel recognition
This commit is contained in:
@@ -104,7 +104,7 @@ export class Chat {
|
||||
onmessage = async (data: Message): Promise<void> => {
|
||||
if (!data.messageChannel) return;
|
||||
const channels = data.messageChannel.split("/");
|
||||
if (this.primaryChannel.value in channels == false) return;
|
||||
if (channels.indexOf(this.primaryChannel.value) == -1) return;
|
||||
|
||||
if (data.subscribed != undefined) this.handleSubscription(data.subscribed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user