diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index 62d3c6548b35..20ada943cbc1 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -737,7 +737,7 @@ function readNewestAction(reportID) { */ function markCommentAsUnread(reportID, reportActionCreated) { // If no action created date is provided, use the last action's - const actionCreationTime = reportActionCreated || lodashGet(allReports, [reportID, 'lastVisibleActionCreated'], '0'); + const actionCreationTime = reportActionCreated || lodashGet(allReports, [reportID, 'lastVisibleActionCreated'], DateUtils.getDBTime(new Date(0))); // We subtract 1 millisecond so that the lastReadTime is updated to just before a given reportAction's created date // For example, if we want to mark a report action with ID 100 and created date '2014-04-01 16:07:02.999' unread, we set the lastReadTime to '2014-04-01 16:07:02.998' @@ -840,7 +840,7 @@ function broadcastUserIsTyping(reportID) { * @param {Object} report */ function handleReportChanged(report) { - if (!report || ReportUtils.isIOUReport(report)) { + if (!report) { return; }