mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Final fixes for moving unread handling to client (#5392)
This commit is contained in:
committed by
Corey Hulen
parent
892f8f4651
commit
06f89cea30
@@ -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}`).
|
||||
|
||||
Reference in New Issue
Block a user