Merge pull request #1347 from mattermost/plt-1062

PLT-1062 Fix jumping when messages received in another channel.
Этот коммит содержится в:
Corey Hulen
2015-11-06 11:52:53 -08:00
родитель 42a9c0e90b 4795c7c003
Коммит cfd2b3cace

Просмотреть файл

@@ -85,6 +85,13 @@ export default class PostsViewContainer extends React.Component {
const channels = this.state.channels.slice();
const channelId = ChannelStore.getCurrentId();
// Has the channel really changed?
if (channelId === channels[this.state.currentChannelIndex]) {
// Dirty hack
this.forceUpdate();
return;
}
PostStore.clearUnseenDeletedPosts(channelId);
let lastViewed = Number.MAX_VALUE;