Skip to content

Commit ea7bb90

Browse files
committed
Merge branch 'main' into @GCygnaek/landscape-mode/hidden-input-fixes
2 parents b4d1160 + ce8ff3a commit ea7bb90

40 files changed

Lines changed: 389 additions & 165 deletions

Mobile-Expensify

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ android {
111111
minSdkVersion rootProject.ext.minSdkVersion
112112
targetSdkVersion rootProject.ext.targetSdkVersion
113113
multiDexEnabled rootProject.ext.multiDexEnabled
114-
versionCode 1009036704
115-
versionName "9.3.67-4"
114+
versionCode 1009036705
115+
versionName "9.3.67-5"
116116
// Supported language variants must be declared here to avoid from being removed during the compilation.
117117
// This also helps us to not include unnecessary language variants in the APK.
118118
resConfigs "en", "es"

config/eslint/eslint.seatbelt.tsv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@
477477
"../../src/pages/ScheduleCall/ScheduleCallPage.tsx" "react-hooks/preserve-manual-memoization" 1
478478
"../../src/pages/Search/SearchAdvancedFiltersPage/SearchFiltersCardPage.tsx" "react-hooks/set-state-in-effect" 1
479479
"../../src/pages/Search/SearchMoneyRequestReportPage.tsx" "@typescript-eslint/no-deprecated/InteractionManager.runAfterInteractions" 1
480+
"../../src/pages/Search/SearchPage.tsx" "react-hooks/refs" 31
480481
"../../src/pages/Search/SearchPage.tsx" "react-hooks/set-state-in-effect" 1
481482
"../../src/pages/Search/SearchTransactionsChangeReport.tsx" "@typescript-eslint/no-deprecated/InteractionManager.runAfterInteractions" 1
482483
"../../src/pages/Share/ShareRootPage.tsx" "@typescript-eslint/no-deprecated/InteractionManager.runAfterInteractions" 1

ios/NewExpensify/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</dict>
4545
</array>
4646
<key>CFBundleVersion</key>
47-
<string>9.3.67.4</string>
47+
<string>9.3.67.5</string>
4848
<key>FullStory</key>
4949
<dict>
5050
<key>OrgId</key>

ios/NotificationServiceExtension/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleShortVersionString</key>
1414
<string>9.3.67</string>
1515
<key>CFBundleVersion</key>
16-
<string>9.3.67.4</string>
16+
<string>9.3.67.5</string>
1717
<key>NSExtension</key>
1818
<dict>
1919
<key>NSExtensionPointIdentifier</key>

ios/ShareViewController/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleShortVersionString</key>
1414
<string>9.3.67</string>
1515
<key>CFBundleVersion</key>
16-
<string>9.3.67.4</string>
16+
<string>9.3.67.5</string>
1717
<key>NSExtension</key>
1818
<dict>
1919
<key>NSExtensionAttributes</key>

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "new.expensify",
3-
"version": "9.3.67-4",
3+
"version": "9.3.67-5",
44
"author": "Expensify, Inc.",
55
"homepage": "https://new.expensify.com",
66
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",

src/DeepLinkHandler.tsx

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ function DeepLinkHandler({onInitialUrl}: DeepLinkHandlerProps) {
2828
const linkingChangeListener = useRef<NativeEventSubscription | null>(null);
2929
const initialUrlProcessed = useRef(false);
3030

31-
const [allReports, allReportsMetadata] = useOnyx(ONYXKEYS.COLLECTION.REPORT);
31+
const [allReports] = useOnyx(ONYXKEYS.COLLECTION.REPORT);
3232
const [, sessionMetadata] = useOnyx(ONYXKEYS.SESSION);
33-
const [conciergeReportID, conciergeReportIDMetadata] = useOnyx(ONYXKEYS.CONCIERGE_REPORT_ID);
34-
const [introSelected, introSelectedMetadata] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED);
33+
const [conciergeReportID] = useOnyx(ONYXKEYS.CONCIERGE_REPORT_ID);
34+
const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED);
3535
const [isSelfTourViewed, isSelfTourViewedMetadata] = useOnyx(ONYXKEYS.NVP_ONBOARDING, {selector: hasSeenTourSelector});
36-
const [betas, betasMetadata] = useOnyx(ONYXKEYS.BETAS);
36+
const [betas] = useOnyx(ONYXKEYS.BETAS);
3737
const isAuthenticated = useIsAuthenticated();
3838

3939
useEffect(() => {
40-
if (isLoadingOnyxValue(allReportsMetadata, sessionMetadata, conciergeReportIDMetadata, introSelectedMetadata, isSelfTourViewedMetadata, betasMetadata)) {
40+
if (isLoadingOnyxValue(sessionMetadata, isSelfTourViewedMetadata)) {
4141
return;
4242
}
4343

@@ -111,17 +111,7 @@ function DeepLinkHandler({onInitialUrl}: DeepLinkHandlerProps) {
111111
linkingChangeListener.current?.remove();
112112
};
113113
// eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally excluding allReports, isAuthenticated, and onInitialUrl to avoid re-triggering deep link handling on every report update
114-
}, [
115-
conciergeReportID,
116-
introSelected,
117-
betas,
118-
allReportsMetadata.status,
119-
sessionMetadata.status,
120-
conciergeReportIDMetadata.status,
121-
introSelectedMetadata.status,
122-
isSelfTourViewedMetadata.status,
123-
betasMetadata.status,
124-
]);
114+
}, [sessionMetadata?.status, conciergeReportID, introSelected, isSelfTourViewedMetadata, betas]);
125115

126116
// Safety net: if getInitialURL() resolves before the session loads, hasAuthToken() may return false
127117
// for an authenticated user, causing openReportFromDeepLink to take the wrong path. Once isAuthenticated

src/components/Attachments/AttachmentView/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {useMemoizedLazyExpensifyIcons} from '@hooks/useLazyAsset';
2020
import useLocalize from '@hooks/useLocalize';
2121
import useNetwork from '@hooks/useNetwork';
2222
import useOnyx from '@hooks/useOnyx';
23+
import useReportOrReportDraft from '@hooks/useReportOrReportDraft';
2324
import useSafeAreaPaddings from '@hooks/useSafeAreaPaddings';
2425
import useStyleUtils from '@hooks/useStyleUtils';
2526
import useTheme from '@hooks/useTheme';
@@ -144,6 +145,7 @@ function AttachmentView({
144145
const encryptedAuthToken = session?.encryptedAuthToken ?? '';
145146
const {translate} = useLocalize();
146147
const {updateCurrentURLAndReportID} = usePlaybackActionsContext();
148+
const report = useReportOrReportDraft(reportID);
147149

148150
const actions = useAttachmentCarouselPagerActions();
149151
const {onAttachmentError, onTap} = actions ?? {};
@@ -163,8 +165,8 @@ function AttachmentView({
163165
return;
164166
}
165167
const videoSource = isVideo && typeof source === 'string' ? source : undefined;
166-
updateCurrentURLAndReportID(videoSource, reportID);
167-
}, [file, isFocused, isInFocusedModal, isUsedInAttachmentModal, isVideo, reportID, source, updateCurrentURLAndReportID]);
168+
updateCurrentURLAndReportID(videoSource, report, reportID);
169+
}, [file, isFocused, isInFocusedModal, isUsedInAttachmentModal, isVideo, reportID, source, updateCurrentURLAndReportID, report]);
168170

169171
const [imageError, setImageError] = useState(false);
170172

0 commit comments

Comments
 (0)