From a0f8d4446ebdbb0ff18b3fa431ac3b892626b980 Mon Sep 17 00:00:00 2001 From: Tim Golen Date: Mon, 10 Aug 2020 20:57:51 -0600 Subject: [PATCH] Always merge the report into the store, in case there is data already there Fixes https://github.com/AndrewGable/ReactNativeChat/issues/41 --- src/store/actions/ReportActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/actions/ReportActions.js b/src/store/actions/ReportActions.js index f48252452fed..7f5da5339445 100644 --- a/src/store/actions/ReportActions.js +++ b/src/store/actions/ReportActions.js @@ -117,7 +117,7 @@ function fetch(reportID) { .then((accountID) => { // When we fetch a full report, we want to figure out if there are unread comments on it fetchedReport.hasUnread = hasUnreadHistoryItems(accountID, fetchedReport); - return Store.set(`${STOREKEYS.REPORT}_${reportID}`, fetchedReport); + return Store.merge(`${STOREKEYS.REPORT}_${reportID}`, fetchedReport); }); }