PLT-5035 Added loading of missing profiles when hovering over reactions (#5887)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c06a23ea0b
Коммит
ee3b983a63
@@ -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);
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user