Skip to content

Commit 35fd37c

Browse files
etroussetalexandrebouthinon
authored andcommitted
realtime: bug fix (#333)
-fixed self message exception when the publisher of the message didn't provide any volatile data
1 parent 8cd9f2c commit 35fd37c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/realtime/room.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Room {
7171
}
7272

7373
_channelListener (data) {
74-
const fromSelf = data.volatile !== undefined && data.volatile.sdkInstanceId === this.kuzzle.network.id;
74+
const fromSelf = data.volatile && data.volatile.sdkInstanceId === this.kuzzle.network.id;
7575
if (this.subscribeToSelf || !fromSelf) {
7676
this.callback(data);
7777
}

0 commit comments

Comments
 (0)