fix(mobile): keep Send to Desktop named onboarding

Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@localhost>
Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
Tom Brow
2026-11-20 12:37:18 -08:00
parent b540d470c3
commit 85a72de9d1
2 changed files with 9 additions and 1 deletions

View File

@@ -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() ||

View File

@@ -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),
];