forked from FoundKeyGang/FoundKey
server: check that channel id is specified
This commit is contained in:
parent
8c47f376dc
commit
ae703cfe4b
1 changed files with 1 additions and 0 deletions
|
@ -332,6 +332,7 @@ export class Connection {
|
|||
* @param data The message to be sent.
|
||||
*/
|
||||
private onChannelMessageRequested(data: Record<string, any>) {
|
||||
if (!data.id) return;
|
||||
this.channels[data.id]?.onMessage?.(data.type, data.body);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue