Final fixes for moving unread handling to client (#5392)

This commit is contained in:
Joram Wilander
2017-02-13 15:19:41 -05:00
committed by Corey Hulen
parent 892f8f4651
commit 06f89cea30
6 changed files with 70 additions and 1 deletions

View File

@@ -1469,6 +1469,15 @@ export default class Client {
end(this.handleResponse.bind(this, 'getMyChannelMembers', success, error));
}
getMyChannelMembersForTeam(teamId, success, error) {
request.
get(`${this.getTeamsRoute()}/${teamId}/channels/members`).
set(this.defaultHeaders).
type('application/json').
accept('application/json').
end(this.handleResponse.bind(this, 'getMyChannelMembersForTeam', success, error));
}
getChannelByName(channelName, success, error) {
request.
get(`${this.getChannelsRoute()}/name/${channelName}`).