server: fix undefined variable in streaming API

This commit is contained in:
Johann150 2023-04-15 17:52:48 +02:00
parent 101b3334dd
commit 8c47f376dc
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -332,7 +332,7 @@ export class Connection {
* @param data The message to be sent.
*/
private onChannelMessageRequested(data: Record<string, any>) {
this.channels[id]?.onMessage?.(data.type, data.body);
this.channels[data.id]?.onMessage?.(data.type, data.body);
}
private typingOnChannel(channel: ChannelModel['id']) {