PLT-5035 Added loading of missing profiles when hovering over reactions (#5887)

Этот коммит содержится в:
Harrison Healey
2017-03-30 09:49:22 -04:00
коммит произвёл GitHub
родитель c06a23ea0b
Коммит ee3b983a63
8 изменённых файлов: 122 добавлений и 37 удалений

Просмотреть файл

@@ -882,3 +882,13 @@ export function loadProfiles(offset = UserStore.getPagingOffset(), limit = Const
}
);
}
export function getMissingProfiles(ids, success, error) {
const missingIds = ids.filter((id) => !UserStore.hasProfile(id));
if (missingIds.length === 0) {
return;
}
AsyncClient.getProfilesByIds(missingIds, success, error);
}