twilio-chat
Advanced tools
Comparing version 0.11.1-alpha.1 to 0.11.1-alpha.2
@@ -263,12 +263,4 @@ 'use strict'; | ||
return this._channelsPromise.then(() => { | ||
let foundChannel = null; | ||
this.channels.forEach(channel => { | ||
if (!foundChannel && (channel.uniqueName === uniqueName)) { | ||
foundChannel = channel; | ||
} | ||
}); | ||
return foundChannel; | ||
}); | ||
// Currently it's not cached on client, fix? | ||
return this._publicChannels.getChannelByUniqueName(uniqueName).then(x => this._channels.pushChannel(x)); | ||
} | ||
@@ -275,0 +267,0 @@ |
@@ -33,4 +33,11 @@ 'use strict'; | ||
} | ||
getChannelByUniqueName(sid) { | ||
const url = new UriBuilder(this._url).path(encodeURIComponent(sid)).build(); | ||
return this._transport.get(url) | ||
.then(response => response.body) | ||
.then(body => new ChannelDescriptor(body)); | ||
} | ||
} | ||
module.exports = PublicChannels; |
{ | ||
"name": "twilio-chat", | ||
"version": "0.11.1-alpha.1", | ||
"version": "0.11.1-alpha.2", | ||
"description": "A library for Twilio IP messaging", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1814998
25666