From b666ef62542b43f7660762e4e89511dc19ca88f1 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Wed, 28 Sep 2016 14:00:53 -0400
Subject: Show statuses correctly for cached post views (#4094)

---
 webapp/components/post_view/post_view_controller.jsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'webapp/components/post_view/post_view_controller.jsx')

diff --git a/webapp/components/post_view/post_view_controller.jsx b/webapp/components/post_view/post_view_controller.jsx
index b96374225..12fd5cd63 100644
--- a/webapp/components/post_view/post_view_controller.jsx
+++ b/webapp/components/post_view/post_view_controller.jsx
@@ -177,11 +177,14 @@ export default class PostViewController extends React.Component {
 
             const joinLeaveEnabled = PreferenceStore.getBool(Constants.Preferences.CATEGORY_ADVANCED_SETTINGS, 'join_leave', true);
 
+            const statuses = Object.assign({}, UserStore.getStatuses());
+
             this.setState({
                 channel,
                 lastViewed,
                 ownNewMessage: false,
                 profiles: JSON.parse(JSON.stringify(profiles)),
+                statuses,
                 postList: PostStore.filterPosts(channel.id, joinLeaveEnabled),
                 displayNameType: PreferenceStore.get(Preferences.CATEGORY_DISPLAY_SETTINGS, 'name_format', 'false'),
                 displayPostsInCenter: PreferenceStore.get(Preferences.CATEGORY_DISPLAY_SETTINGS, Preferences.CHANNEL_DISPLAY_MODE, Preferences.CHANNEL_DISPLAY_MODE_DEFAULT) === Preferences.CHANNEL_DISPLAY_MODE_CENTERED,
-- 
cgit v1.2.3-1-g7c22

