fix(core): update

This commit is contained in:
Philipp Kunz 2019-08-12 15:12:31 +02:00
parent 67f4e33ca0
commit 6838a8729a
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ export class Universe {
this.universeCache,
unauthenticatedMessage
);
if (foundChannel) {
if (foundChannel && unauthenticatedMessage.authenticated) {
const authenticatedMessage = unauthenticatedMessage;
await this.universeCache.addMessage(authenticatedMessage);
}

View File

@ -42,7 +42,7 @@ export class UniverseMessage implements interfaces.IUniverseMessage {
/**
* wether the message is authenticated
*/
public authenticated: boolean = null;
public authenticated: boolean = false;
/**
* a destruction timer for this message