diff --git a/android/app/build.gradle b/android/app/build.gradle
index 497fa03c8de8..225bf32abe00 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -148,8 +148,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
- versionCode 1001006109
- versionName "1.0.61-9"
+ versionCode 1001006200
+ versionName "1.0.62-0"
}
splits {
abi {
diff --git a/ios/ExpensifyCash/Info.plist b/ios/ExpensifyCash/Info.plist
index 9d5e01946ffe..efe685678db2 100644
--- a/ios/ExpensifyCash/Info.plist
+++ b/ios/ExpensifyCash/Info.plist
@@ -17,7 +17,7 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 1.0.61
+ 1.0.62
CFBundleSignature
????
CFBundleURLTypes
@@ -30,7 +30,7 @@
CFBundleVersion
- 1.0.61.9
+ 1.0.62.0
ITSAppUsesNonExemptEncryption
LSApplicationQueriesSchemes
diff --git a/ios/ExpensifyCashTests/Info.plist b/ios/ExpensifyCashTests/Info.plist
index 31ec8d932242..d71d6af328df 100644
--- a/ios/ExpensifyCashTests/Info.plist
+++ b/ios/ExpensifyCashTests/Info.plist
@@ -15,10 +15,10 @@
CFBundlePackageType
BNDL
CFBundleShortVersionString
- 1.0.61
+ 1.0.62
CFBundleSignature
????
CFBundleVersion
- 1.0.61.9
+ 1.0.62.0
diff --git a/package-lock.json b/package-lock.json
index 3c7f4ed31dc3..7c36f878bfaa 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "expensify.cash",
- "version": "1.0.61-9",
+ "version": "1.0.62-0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index a952c96df60f..6a449984faf2 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "expensify.cash",
- "version": "1.0.61-9",
+ "version": "1.0.62-0",
"author": "Expensify, Inc.",
"homepage": "https://expensify.cash",
"description": "Expensify.cash is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",
diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js
index 12bda38ca7f0..66e59ed92eca 100644
--- a/src/libs/actions/IOU.js
+++ b/src/libs/actions/IOU.js
@@ -2,9 +2,11 @@ import Onyx from 'react-native-onyx';
import _ from 'underscore';
import CONST from '../../CONST';
import ONYXKEYS from '../../ONYXKEYS';
+import ROUTES from '../../ROUTES';
import * as API from '../API';
import {getSimplifiedIOUReport, fetchChatReportsByIDs, fetchIOUReportByIDAndUpdateChatReport} from './Report';
import openURLInNewTab from '../openURLInNewTab';
+import Navigation from '../Navigation/Navigation';
/**
* Retrieve the users preferred currency
@@ -73,7 +75,10 @@ function getIOUReportsForNewTransaction(requestParams) {
function createIOUTransaction(params) {
Onyx.merge(ONYXKEYS.IOU, {loading: true, creatingIOUTransaction: true, error: false});
API.CreateIOUTransaction(params)
- .then(data => getIOUReportsForNewTransaction([data]));
+ .then((data) => {
+ getIOUReportsForNewTransaction([data]);
+ Navigation.navigate(ROUTES.getReportRoute(data.chatReportID));
+ });
}
/**
@@ -87,14 +92,18 @@ function createIOUTransaction(params) {
function createIOUSplit(params) {
Onyx.merge(ONYXKEYS.IOU, {loading: true, creatingIOUTransaction: true, error: false});
+ let chatReportID;
API.CreateChatReport({
emailList: params.splits.map(participant => participant.email).join(','),
})
- .then(data => API.CreateIOUSplit({
- ...params,
- splits: JSON.stringify(params.splits),
- reportID: data.reportID,
- }))
+ .then((data) => {
+ chatReportID = data.reportID;
+ return API.CreateIOUSplit({
+ ...params,
+ splits: JSON.stringify(params.splits),
+ reportID: data.reportID,
+ });
+ })
.then((data) => {
// This data needs to go from this:
// {reportIDList: [1, 2], chatReportIDList: [3, 4]}
@@ -110,6 +119,7 @@ function createIOUSplit(params) {
});
}
getIOUReportsForNewTransaction(reportParams);
+ Navigation.navigate(ROUTES.getReportRoute(chatReportID));
});
}