diff --git a/android/app/build.gradle b/android/app/build.gradle index 778e73ccecd0b..08cbfe4527d7c 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -156,8 +156,8 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion multiDexEnabled rootProject.ext.multiDexEnabled - versionCode 1001023107 - versionName "1.2.31-7" + versionCode 1001023108 + versionName "1.2.31-8" buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() if (isNewArchitectureEnabled()) { diff --git a/ios/NewExpensify/Info.plist b/ios/NewExpensify/Info.plist index 185e93cfdf2f4..b4bc604d16e76 100644 --- a/ios/NewExpensify/Info.plist +++ b/ios/NewExpensify/Info.plist @@ -30,7 +30,7 @@ CFBundleVersion - 1.2.31.7 + 1.2.31.8 ITSAppUsesNonExemptEncryption LSApplicationQueriesSchemes diff --git a/ios/NewExpensifyTests/Info.plist b/ios/NewExpensifyTests/Info.plist index 021c8af13ad7f..34f500e6e45e0 100644 --- a/ios/NewExpensifyTests/Info.plist +++ b/ios/NewExpensifyTests/Info.plist @@ -19,6 +19,6 @@ CFBundleSignature ???? CFBundleVersion - 1.2.31.7 + 1.2.31.8 diff --git a/package-lock.json b/package-lock.json index a3c1418d127f4..ef21e7eaff620 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "new.expensify", - "version": "1.2.31-7", + "version": "1.2.31-8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "new.expensify", - "version": "1.2.31-7", + "version": "1.2.31-8", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index fa82c5caf5d5e..9209dc1cb9649 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "new.expensify", - "version": "1.2.31-7", + "version": "1.2.31-8", "author": "Expensify, Inc.", "homepage": "https://new.expensify.com", "description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.", diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index b0035909d1d47..2d213feba794d 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -75,6 +75,15 @@ function getReportParticipantsTitle(logins) { return _.map(logins, login => Str.removeSMSDomain(login)).join(', '); } +/** + * Attempts to find a report in onyx with the provided list of participants + * @param {Object} report + * @returns {Boolean} + */ +function isIOUReport(report) { + return report && _.has(report, 'total'); +} + /** * Check whether a report action is Attachment or not. * Ignore messages containing [Attachment] as the main content. Attachments are actions with only text as [Attachment]. @@ -95,7 +104,7 @@ function isReportMessageAttachment({text, html}) { function sortReportsByLastVisited(reports) { return _.chain(reports) .toArray() - .filter(report => report && report.reportID) + .filter(report => report && report.reportID && !isIOUReport(report)) .sortBy('lastVisitedTimestamp') .value(); }