Merge pull request #1621 from thecodingmachine/fix_empty_submessage
Fix sending empty variable message for users that have no right to re…
This commit is contained in:
commit
936a6bfeec
@ -100,12 +100,12 @@ export class PusherRoom {
|
||||
|
||||
// Let's dispatch this variable to all the listeners
|
||||
for (const listener of this.listeners) {
|
||||
const subMessage = new SubMessage();
|
||||
if (!readableBy || listener.tags.includes(readableBy)) {
|
||||
const subMessage = new SubMessage();
|
||||
subMessage.setVariablemessage(variableMessage);
|
||||
}
|
||||
listener.emitInBatch(subMessage);
|
||||
}
|
||||
}
|
||||
} else if (message.hasErrormessage()) {
|
||||
const errorMessage = message.getErrormessage() as ErrorMessage;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user