diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-09-28 14:00:53 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-09-28 14:00:53 -0400 |
commit | b666ef62542b43f7660762e4e89511dc19ca88f1 (patch) | |
tree | 92bb0a20075926e735b5f1c7e124214ca87a3983 /webapp | |
parent | 40c0a85b2de23b2cf67d0642bebe3128048c38bf (diff) | |
download | chat-b666ef62542b43f7660762e4e89511dc19ca88f1.tar.gz chat-b666ef62542b43f7660762e4e89511dc19ca88f1.tar.bz2 chat-b666ef62542b43f7660762e4e89511dc19ca88f1.zip |
Show statuses correctly for cached post views (#4094)
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/components/post_view/post_view_controller.jsx | 3 |
1 files changed, 3 insertions, 0 deletions
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, |