Fix new message indicator in channel screen (#807)

This commit is contained in:
enahum 2017-08-01 18:21:26 -04:00 committed by Harrison Healey
parent 06e50baf79
commit f6bdbb941a
3 changed files with 5 additions and 4 deletions

View file

@ -162,9 +162,9 @@ export default class ChannelDrawer extends PureComponent {
viewChannel
} = actions;
setChannelLoading();
markChannelAsRead(channel.id, currentChannel.id);
viewChannel(channel.id, currentChannel.id);
setChannelLoading();
viewChannel(currentChannel.id);
setChannelDisplayName(channel.display_name);
this.closeChannelDrawer();
InteractionManager.runAfterInteractions(() => {

View file

@ -383,8 +383,9 @@ class Search extends Component {
}
this.props.navigator.dismissModal({animationType: 'none'});
setChannelLoading();
markChannelAsRead(channelId, currentChannelId);
setChannelLoading();
viewChannel(channelId, currentChannelId);
setChannelDisplayName(displayName);
handleSelectChannel(channelId);

View file

@ -3645,7 +3645,7 @@ makeerror@1.0.x:
mattermost-redux@mattermost/mattermost-redux#master:
version "0.0.1"
resolved "https://codeload.github.com/mattermost/mattermost-redux/tar.gz/5b676e2737c526617cd9b4e9c7dbb16f3615e269"
resolved "https://codeload.github.com/mattermost/mattermost-redux/tar.gz/09be47436ce729d8ab7a390e7e159fcfb75fd27f"
dependencies:
deep-equal "1.0.1"
harmony-reflect "1.5.1"