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