Skip to content

Commit

Permalink
Merge pull request #15097 from gedu/14520/new_message_green_line_appears
Browse files Browse the repository at this point in the history
14520: new message green line appears
  • Loading branch information
puneetlath authored Feb 15, 2023
2 parents b9fe42a + 19443dc commit 5fa1c8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/home/report/ReportActionsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ class ReportActionsView extends React.Component {
// If the app user becomes active and they have no unread actions we clear the new marker to sync their device
// e.g. they could have read these messages on another device and only just become active here
this.openReportIfNecessary();
this.setState({newMarkerReportActionID: ''});

const hasUnreadActions = ReportUtils.isUnread(this.props.report);
if (!hasUnreadActions) {
this.setState({newMarkerReportActionID: ''});
}
});

if (this.getIsReportFullyVisible()) {
Expand Down

0 comments on commit 5fa1c8b

Please sign in to comment.