Skip to content

Commit

Permalink
fix: internal server error when connecting to publication with backwa…
Browse files Browse the repository at this point in the history
…rd compatibility flag (#32085)

Co-authored-by: Diego Sampaio <[email protected]>
  • Loading branch information
pierre-lehnen-rc and sampaiodiego authored Mar 28, 2024
1 parent 0b1a360 commit a7b50ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/great-yaks-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@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.
2 changes: 1 addition & 1 deletion ee/apps/ddp-streamer/src/Publication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit a7b50ec

Please sign in to comment.