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
@@ -224,6 +224,28 @@ export function getTeamMembers(teamId) {
|
||||
);
|
||||
}
|
||||
|
||||
export function getProfilesForDirectMessageList() {
|
||||
if (isCallInProgress('getProfilesForDirectMessageList')) {
|
||||
return;
|
||||
}
|
||||
|
||||
callTracker.getProfilesForDirectMessageList = utils.getTimestamp();
|
||||
Client.getProfilesForDirectMessageList(
|
||||
(data) => {
|
||||
callTracker.getProfilesForDirectMessageList = 0;
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECEIVED_PROFILES_FOR_DM_LIST,
|
||||
profiles: data
|
||||
});
|
||||
},
|
||||
(err) => {
|
||||
callTracker.getProfilesForDirectMessageList = 0;
|
||||
dispatchError(err, 'getProfilesForDirectMessageList');
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function getProfiles() {
|
||||
if (isCallInProgress('getProfiles')) {
|
||||
return;
|
||||
|
||||
Ссылка в новой задаче
Block a user