Skip to content
Snippets Groups Projects
Unverified Commit a7b50ec8 authored by Pierre Lehnen's avatar Pierre Lehnen Committed by GitHub
Browse files

fix: internal server error when connecting to publication with backward compatibility flag (#32085)

parent 0b1a360a
No related branches found
No related tags found
No related merge requests found
---
'@rocket.chat/meteor': patch
'@rocket.chat/ddp-streamer': patch
---
Fixed an internal server error when using the backwards compatibility flag to connect to the real time API for listening to all server message notifications.
......@@ -19,7 +19,7 @@ export class Publication extends EventEmitter implements IPublication {
this.once('stop', () => client.subscriptions.delete(packet.id));
this._session = {
sendAdded: this.added,
sendAdded: this.added.bind(this),
socket: client,
userId: client.userId,
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment