mirror of
https://github.com/block/buzz.git
synced 2026-11-25 10:42:26 +00:00
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:
@@ -39,7 +39,10 @@ DiagnosticScreen? diagnosticScreenOf(Widget page) => switch (page) {
|
|||||||
CommunityInvitePage() => DiagnosticScreen.invites,
|
CommunityInvitePage() => DiagnosticScreen.invites,
|
||||||
CommunitySwitcherPage() => DiagnosticScreen.communitySwitcher,
|
CommunitySwitcherPage() => DiagnosticScreen.communitySwitcher,
|
||||||
OnboardingAppEntry(addingCommunity: true) ||
|
OnboardingAppEntry(addingCommunity: true) ||
|
||||||
PairingPage(addingCommunity: true) => DiagnosticScreen.addCommunity,
|
PairingPage(
|
||||||
|
addingCommunity: true,
|
||||||
|
identityRecoveryOnly: false,
|
||||||
|
) => DiagnosticScreen.addCommunity,
|
||||||
MediaImageViewerPage() ||
|
MediaImageViewerPage() ||
|
||||||
MediaVideoViewerPage() => DiagnosticScreen.mediaViewer,
|
MediaVideoViewerPage() => DiagnosticScreen.mediaViewer,
|
||||||
OnboardingAppEntry() ||
|
OnboardingAppEntry() ||
|
||||||
|
|||||||
@@ -19,6 +19,11 @@ void main() {
|
|||||||
DiagnosticScreen.addCommunity,
|
DiagnosticScreen.addCommunity,
|
||||||
),
|
),
|
||||||
(const PairingPage(addingCommunity: true), 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.
|
// Not on the list: never named by its own type.
|
||||||
(const Text('unlisted'), null),
|
(const Text('unlisted'), null),
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user