summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-02-16 12:13:22 -0500
committerGitHub <noreply@github.com>2017-02-16 12:13:22 -0500
commit38c42ca53f23898206dce7466a2ec7fba9b61ac1 (patch)
treee5de633a89a655648846280346fb5a03f9b312b1 /webapp
parentc6ffb73999ff4374503ea57d1b1e6485a5bee472 (diff)
downloadchat-38c42ca53f23898206dce7466a2ec7fba9b61ac1.tar.gz
chat-38c42ca53f23898206dce7466a2ec7fba9b61ac1.tar.bz2
chat-38c42ca53f23898206dce7466a2ec7fba9b61ac1.zip
Fix load profile for new DM message (#5441)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/actions/user_actions.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/actions/user_actions.jsx b/webapp/actions/user_actions.jsx
index 43881a188..cf5241511 100644
--- a/webapp/actions/user_actions.jsx
+++ b/webapp/actions/user_actions.jsx
@@ -277,6 +277,10 @@ export function loadProfilesAndTeamMembersForDMSidebar() {
name: teammateId,
value: 'true'
});
+
+ if (!UserStore.hasProfile(teammateId)) {
+ profilesToLoad.push(teammateId);
+ }
}
}