An open-source cross-platform alternative to AirDrop
fix: always set whats new flag
Tien Do Namf24dcbd9491f
diff --git a/app/lib/config/init.dart b/app/lib/config/init.dartindex 00c2e2fe..a1685b08 100644--- a/app/lib/config/init.dart+++ b/app/lib/config/init.dart@@ -300,15 +300,15 @@ Future<void> postInit(BuildContext context, Ref ref, bool appStart) async {if (!ref.read(persistenceProvider).isFirstAppStart) {WhatsNewPage? whatsNew = WhatsNewPage.fromLastVersion(lastVersion: ref.read(persistenceProvider).getWhatsNew());if (whatsNew != null) {- await ref.future(versionProvider).then((version) async {- await ref.read(persistenceProvider).setWhatsNew(version.version);- });-// ignore: unawaited_futuresref.global.dispatchAsync(NavigateAction.push(whatsNew));}}+ await ref.future(versionProvider).then((version) async {+ await ref.read(persistenceProvider).setWhatsNew(version.version);+ });+// [FOSS_REMOVE_START]if (checkPlatformSupportPayment()) {// ignore: unawaited_futures