summaryrefslogtreecommitdiffstats
path: root/webapp/actions/user_actions.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-03-30 09:49:22 -0400
committerGitHub <noreply@github.com>2017-03-30 09:49:22 -0400
commitee3b983a6344d78bafa553607133020e8e1fb0ed (patch)
tree2ddd0e83f9ae8fd3132c15c43b6ca7f80e7c7428 /webapp/actions/user_actions.jsx
parentc06a23ea0b0aa317b88327a78e55d2fe7b2c1b89 (diff)
downloadchat-ee3b983a6344d78bafa553607133020e8e1fb0ed.tar.gz
chat-ee3b983a6344d78bafa553607133020e8e1fb0ed.tar.bz2
chat-ee3b983a6344d78bafa553607133020e8e1fb0ed.zip
PLT-5035 Added loading of missing profiles when hovering over reactions (#5887)
Diffstat (limited to 'webapp/actions/user_actions.jsx')
-rw-r--r--webapp/actions/user_actions.jsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/webapp/actions/user_actions.jsx b/webapp/actions/user_actions.jsx
index 231b09f11..3b1fa96a8 100644
--- a/webapp/actions/user_actions.jsx
+++ b/webapp/actions/user_actions.jsx
@@ -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);
+}