vani-meeting-server 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -173,7 +173,8 @@ class EachSocketConnectionHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
173
173
  if (paylod.data.shouldPresist && paylod.data.shouldPresist === true) {
174
174
  RedisHandler_1.RedisHandler.getInstance().storeMesagesForRoom(this.selfParticipant.roomId, paylod.data.message);
175
175
  }
176
- this.redisBroadcastMessageToTopic(this.selfParticipant?.roomId, this.preapreClientMessageBody(false, this.selfParticipant, this.preapreWebSocketMessageBody(paylod.data.type, paylod.data.message)));
176
+ const to = paylod.data.to === "all" ? this.selfParticipant?.roomId : paylod.data.to;
177
+ this.redisBroadcastMessageToTopic(to, this.preapreClientMessageBody(false, this.selfParticipant, this.preapreWebSocketMessageBody(paylod.data.type, paylod.data.message)));
177
178
  }
178
179
  else if (paylod.type === WebSocketBasicEvents.GetOldMessages) {
179
180
  const messages = await RedisHandler_1.RedisHandler.getInstance().fetchMessagesForRoom(this.selfParticipant?.roomId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-server",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Vani Meeting Server SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",