Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -840,7 +840,7 @@ function broadcastUserIsTyping(reportID) {
* @param {Object} report
*/
function handleReportChanged(report) {
if (!report || ReportUtils.isIOUReport(report)) {
if (!report) {
return;
}

Expand Down