fix(core): update

This commit is contained in:
Philipp Kunz 2019-09-10 10:50:55 +02:00
parent 5dab36382f
commit 2868ab686d

View File

@ -62,8 +62,18 @@ export class Universe {
*/ */
public addChannel(nameArg: string, passphraseArg: string) { public addChannel(nameArg: string, passphraseArg: string) {
const newChannel = UniverseChannel.createChannel(this, nameArg, passphraseArg); const newChannel = UniverseChannel.createChannel(this, nameArg, passphraseArg);
return newChannel;
} }
/**
* returns a channel
*/
public getChannelByName(channelNameArg: string) {
return this.universeCache.channelMap.find(channelArg => {
return channelArg.name === channelNameArg;
});
};
/** /**
* initiates a server * initiates a server
*/ */