Fixed some potential bugs in goToNotification action (#696)
This commit is contained in:
parent
c31bc5419f
commit
3bb50ff96e
1 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ export function goToNotification(notification) {
|
|||
await loadChannelsIfNecessary(teamId)(dispatch, getState);
|
||||
} else {
|
||||
await selectFirstAvailableTeam()(dispatch, getState);
|
||||
teamId = currentTeamId;
|
||||
teamId = state.entities.team.currentTeamId;
|
||||
}
|
||||
|
||||
viewChannel(channelId)(dispatch, getState);
|
||||
|
|
@ -60,7 +60,7 @@ export function goToNotification(notification) {
|
|||
if (channelId !== currentChannelId) {
|
||||
handleSelectChannel(channelId)(dispatch, getState);
|
||||
}
|
||||
markChannelAsRead(teamId, channelId)(dispatch, getState).then(() => true).catch(() => true);
|
||||
markChannelAsRead(channelId, currentChannelId)(dispatch, getState);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue