Merge pull request #1347 from mattermost/plt-1062
PLT-1062 Fix jumping when messages received in another channel.
Этот коммит содержится в:
@@ -85,6 +85,13 @@ export default class PostsViewContainer extends React.Component {
|
|||||||
const channels = this.state.channels.slice();
|
const channels = this.state.channels.slice();
|
||||||
const channelId = ChannelStore.getCurrentId();
|
const channelId = ChannelStore.getCurrentId();
|
||||||
|
|
||||||
|
// Has the channel really changed?
|
||||||
|
if (channelId === channels[this.state.currentChannelIndex]) {
|
||||||
|
// Dirty hack
|
||||||
|
this.forceUpdate();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
PostStore.clearUnseenDeletedPosts(channelId);
|
PostStore.clearUnseenDeletedPosts(channelId);
|
||||||
|
|
||||||
let lastViewed = Number.MAX_VALUE;
|
let lastViewed = Number.MAX_VALUE;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user