Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix: Update check for downloaded Telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
reasje committed Sep 12, 2023
1 parent 428771c commit 11af80b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ class CustomerSupportPage extends HookConsumerWidget {
key: const ValueKey('jumpToTelegramButton'),
title: FlutterI18n.translate(context, 'jump_to_telegram'),
size: AxsButtonSize.xl,
onTap: ref.watch(state).applist['telegram'] == true
onTap: ref.watch(state).applist['telegram'] == true ||
ref.watch(state).applist['telegram_web'] == true
? () => openUrl('http://t.me/mxcchatgpt_bot')
: null,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ class SplashStoragePage extends SplashBasePage {
key: const ValueKey('telegramButton'),
icon: MxcIcons.telegram,
title: FlutterI18n.translate(context, 'telegram_secured_storage'),
onTap: ref.watch(state).applist['telegram'] == true
onTap: ref.watch(state).applist['telegram'] == true ||
ref.watch(state).applist['telegram_web'] == true
? () => Navigator.of(context).push(
route.featureDialog(
TelegramRecoveryPhrasePage(
Expand Down
3 changes: 2 additions & 1 deletion lib/features/splash/import_storage/import_storage_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class SplashImportStoragePage extends SplashBasePage {
key: const ValueKey('telegramButton'),
icon: MxcIcons.telegram,
title: FlutterI18n.translate(context, 'telegram_secured_storage'),
onTap: ref.watch(state).applist['telegram'] == true
onTap: ref.watch(state).applist['telegram'] == true ||
ref.watch(state).applist['telegram_web'] == true
? () => ref.read(presenter).openTelegram()
: null,
),
Expand Down

0 comments on commit 11af80b

Please sign in to comment.