server: check that channel id is specified

This commit is contained in:
Johann150 2023-04-15 18:14:57 +02:00
parent 8c47f376dc
commit ae703cfe4b
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -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);
}