diff --git a/android/app/build.gradle b/android/app/build.gradle
index 49cb7468ab7b..30f2d4fd20ba 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -150,8 +150,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
- versionCode 1001010106
- versionName "1.1.1-6"
+ versionCode 1001010107
+ versionName "1.1.1-7"
}
splits {
abi {
diff --git a/ios/NewExpensify/Info.plist b/ios/NewExpensify/Info.plist
index 291847f61d05..65fd3a6e423e 100644
--- a/ios/NewExpensify/Info.plist
+++ b/ios/NewExpensify/Info.plist
@@ -31,7 +31,7 @@
CFBundleVersion
- 1.1.1.6
+ 1.1.1.7
ITSAppUsesNonExemptEncryption
LSApplicationQueriesSchemes
diff --git a/ios/NewExpensifyTests/Info.plist b/ios/NewExpensifyTests/Info.plist
index 3bd92b5bf06c..d4934e6da5f7 100644
--- a/ios/NewExpensifyTests/Info.plist
+++ b/ios/NewExpensifyTests/Info.plist
@@ -19,6 +19,6 @@
CFBundleSignature
????
CFBundleVersion
- 1.1.1.6
+ 1.1.1.7
diff --git a/package-lock.json b/package-lock.json
index 2e16cdc9d82d..778da9bb78d6 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "new.expensify",
- "version": "1.1.1-6",
+ "version": "1.1.1-7",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index fa509a486b20..24fe47831411 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "new.expensify",
- "version": "1.1.1-6",
+ "version": "1.1.1-7",
"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/actions/App.js b/src/libs/actions/App.js
index c466fa7e4deb..d0c4b0b71ed8 100644
--- a/src/libs/actions/App.js
+++ b/src/libs/actions/App.js
@@ -10,10 +10,12 @@ import Performance from '../Performance';
import Timing from './Timing';
let currentUserAccountID;
+let currentUserEmail;
Onyx.connect({
key: ONYXKEYS.SESSION,
callback: (val) => {
currentUserAccountID = lodashGet(val, 'accountID', '');
+ currentUserEmail = lodashGet(val, 'email', '');
},
});
@@ -48,8 +50,8 @@ function setLocale(locale) {
* @param {string} url relative URL starting with `/` to open in expensify.com
*/
function openSignedInLink(url = '') {
- API.GetShortLivedAuthToken().then((response) => {
- Linking.openURL(`${CONFIG.EXPENSIFY.URL_EXPENSIFY_COM}${url}${url.indexOf('?') === -1 ? '?' : '&'}authToken=${response.authToken}&email=${encodeURIComponent(response.email)}`);
+ API.GetShortLivedAuthToken().then(({shortLivedAuthToken}) => {
+ Linking.openURL(`${CONFIG.EXPENSIFY.URL_EXPENSIFY_COM}${url}${url.indexOf('?') === -1 ? '?' : '&'}authToken=${shortLivedAuthToken}&email=${encodeURIComponent(currentUserEmail)}`);
});
}