Show statuses correctly for cached post views (#4094)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
40c0a85b2d
Коммит
b666ef6254
@@ -177,11 +177,14 @@ export default class PostViewController extends React.Component {
|
|||||||
|
|
||||||
const joinLeaveEnabled = PreferenceStore.getBool(Constants.Preferences.CATEGORY_ADVANCED_SETTINGS, 'join_leave', true);
|
const joinLeaveEnabled = PreferenceStore.getBool(Constants.Preferences.CATEGORY_ADVANCED_SETTINGS, 'join_leave', true);
|
||||||
|
|
||||||
|
const statuses = Object.assign({}, UserStore.getStatuses());
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
channel,
|
channel,
|
||||||
lastViewed,
|
lastViewed,
|
||||||
ownNewMessage: false,
|
ownNewMessage: false,
|
||||||
profiles: JSON.parse(JSON.stringify(profiles)),
|
profiles: JSON.parse(JSON.stringify(profiles)),
|
||||||
|
statuses,
|
||||||
postList: PostStore.filterPosts(channel.id, joinLeaveEnabled),
|
postList: PostStore.filterPosts(channel.id, joinLeaveEnabled),
|
||||||
displayNameType: PreferenceStore.get(Preferences.CATEGORY_DISPLAY_SETTINGS, 'name_format', 'false'),
|
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,
|
displayPostsInCenter: PreferenceStore.get(Preferences.CATEGORY_DISPLAY_SETTINGS, Preferences.CHANNEL_DISPLAY_MODE, Preferences.CHANNEL_DISPLAY_MODE_DEFAULT) === Preferences.CHANNEL_DISPLAY_MODE_CENTERED,
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user