summaryrefslogtreecommitdiffstats
path: root/webapp/actions
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-10-31 09:11:23 -0400
committerChristopher Speller <crspeller@gmail.com>2016-10-31 09:11:23 -0400
commitd67a2e1f0cdc62a89c39bb3a16adc4a6a4d05eeb (patch)
treec6a6f2f5beae0cec4705f9fd2877f6a6d1b5e0b1 /webapp/actions
parent4887c9228cb90d6a9bfe57c7e21aa507958de4f3 (diff)
downloadchat-d67a2e1f0cdc62a89c39bb3a16adc4a6a4d05eeb.tar.gz
chat-d67a2e1f0cdc62a89c39bb3a16adc4a6a4d05eeb.tar.bz2
chat-d67a2e1f0cdc62a89c39bb3a16adc4a6a4d05eeb.zip
Fix new DMs not showing up in the sidebar (#4374)
Diffstat (limited to 'webapp/actions')
-rw-r--r--webapp/actions/global_actions.jsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/webapp/actions/global_actions.jsx b/webapp/actions/global_actions.jsx
index 123c1c392..a2c7c341d 100644
--- a/webapp/actions/global_actions.jsx
+++ b/webapp/actions/global_actions.jsx
@@ -360,14 +360,14 @@ export function emitClearSuggestions(suggestionId) {
}
export function emitPreferenceChangedEvent(preference) {
- if (preference.category === Constants.Preferences.CATEGORY_DIRECT_CHANNEL_SHOW) {
- loadProfilesAndTeamMembersForDMSidebar();
- }
-
AppDispatcher.handleServerAction({
type: Constants.ActionTypes.RECEIVED_PREFERENCE,
preference
});
+
+ if (preference.category === Constants.Preferences.CATEGORY_DIRECT_CHANNEL_SHOW) {
+ loadProfilesAndTeamMembersForDMSidebar();
+ }
}
export function emitRemovePost(post) {