fix(core): update

This commit is contained in:
2019-08-12 15:10:40 +02:00
parent ff9cb9132c
commit 8a8277ae9f
2 changed files with 10 additions and 3 deletions
+7 -2
View File
@@ -135,10 +135,15 @@ export class Universe {
universeConnectionInstance
);
}
await UniverseChannel.authorizeAMessageForAChannel(
const unauthenticatedMessage = UniverseMessage.createMessageFromPayload(dataArg);
const foundChannel = await UniverseChannel.authorizeAMessageForAChannel(
this.universeCache,
UniverseMessage.createMessageFromPayload(dataArg)
unauthenticatedMessage
);
if (foundChannel) {
const authenticatedMessage = unauthenticatedMessage;
await this.universeCache.addMessage(authenticatedMessage);
}
})();
}
});