diff --git a/mobile/lib/diagnostic_screens.dart b/mobile/lib/diagnostic_screens.dart index cec96ee366..13f496a154 100644 --- a/mobile/lib/diagnostic_screens.dart +++ b/mobile/lib/diagnostic_screens.dart @@ -39,7 +39,10 @@ DiagnosticScreen? diagnosticScreenOf(Widget page) => switch (page) { CommunityInvitePage() => DiagnosticScreen.invites, CommunitySwitcherPage() => DiagnosticScreen.communitySwitcher, OnboardingAppEntry(addingCommunity: true) || - PairingPage(addingCommunity: true) => DiagnosticScreen.addCommunity, + PairingPage( + addingCommunity: true, + identityRecoveryOnly: false, + ) => DiagnosticScreen.addCommunity, MediaImageViewerPage() || MediaVideoViewerPage() => DiagnosticScreen.mediaViewer, OnboardingAppEntry() || diff --git a/mobile/test/shared/diagnostics/diagnostic_navigation_test.dart b/mobile/test/shared/diagnostics/diagnostic_navigation_test.dart index 37400131cb..47ace5e071 100644 --- a/mobile/test/shared/diagnostics/diagnostic_navigation_test.dart +++ b/mobile/test/shared/diagnostics/diagnostic_navigation_test.dart @@ -19,6 +19,11 @@ void main() { DiagnosticScreen.addCommunity, ), (const PairingPage(addingCommunity: true), DiagnosticScreen.addCommunity), + // Send to Desktop recovers an identity; it adds no community. + ( + const PairingPage(addingCommunity: true, identityRecoveryOnly: true), + DiagnosticScreen.onboarding, + ), // Not on the list: never named by its own type. (const Text('unlisted'), null), ];