From 6611229cd7bd3cdfc0082c0a581145aaac0ab322 Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Wed, 4 May 2016 06:31:42 -0700 Subject: PLT-2707 Adding option to show DM list from all of server (#2871) * PLT-2707 Adding option to show DM list from all of server * Fixing loc --- webapp/client/client.jsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'webapp/client/client.jsx') diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx index 69f573eff..73cc6120f 100644 --- a/webapp/client/client.jsx +++ b/webapp/client/client.jsx @@ -862,13 +862,22 @@ export default class Client { getProfilesForTeam = (teamId, success, error) => { request. - get(`${this.getUsersRoute()}/profiles/${teamId}?skip_direct=true`). + get(`${this.getUsersRoute()}/profiles/${teamId}`). set(this.defaultHeaders). type('application/json'). accept('application/json'). end(this.handleResponse.bind(this, 'getProfilesForTeam', success, error)); } + getProfilesForDirectMessageList = (success, error) => { + request. + get(`${this.getUsersRoute()}/profiles_for_dm_list/${this.getTeamId()}`). + set(this.defaultHeaders). + type('application/json'). + accept('application/json'). + end(this.handleResponse.bind(this, 'getProfilesForDirectMessageList', success, error)); + } + getStatuses = (ids, success, error) => { request. post(`${this.getUsersRoute()}/status`). -- cgit v1.2.3-1-g7c22