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
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
6b06f49e89
Коммит
6611229cd7
@@ -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`).
|
||||
|
||||
Ссылка в новой задаче
Block a user