From d36be20757fc05556ccb8985e5784b77c142748d Mon Sep 17 00:00:00 2001 From: Javed Hussein Date: Sun, 27 Feb 2022 23:14:10 +0530 Subject: [PATCH 1/3] fix/don't sync if sync in progress PE-1002 --- lib/blocs/sync/sync_cubit.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/blocs/sync/sync_cubit.dart b/lib/blocs/sync/sync_cubit.dart index d871080b78..7eb45849ac 100644 --- a/lib/blocs/sync/sync_cubit.dart +++ b/lib/blocs/sync/sync_cubit.dart @@ -115,6 +115,12 @@ class SyncCubit extends Cubit { >{}; Future startSync() async { + if (!(state is SyncInProgress)) { + await sync(); + } + } + + Future sync() async { try { final profile = _profileCubit.state; String? ownerAddress; From 96879c6e9da734ea46d18d5d99f7c29df8033a2d Mon Sep 17 00:00:00 2001 From: Javed Hussein Date: Sun, 27 Feb 2022 23:30:57 +0530 Subject: [PATCH 2/3] refactor: simplify startSync PE-1002 --- lib/blocs/sync/sync_cubit.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/blocs/sync/sync_cubit.dart b/lib/blocs/sync/sync_cubit.dart index 7eb45849ac..bc21c302b8 100644 --- a/lib/blocs/sync/sync_cubit.dart +++ b/lib/blocs/sync/sync_cubit.dart @@ -115,12 +115,10 @@ class SyncCubit extends Cubit { >{}; Future startSync() async { - if (!(state is SyncInProgress)) { - await sync(); + if (state is SyncInProgress) { + return; } - } - Future sync() async { try { final profile = _profileCubit.state; String? ownerAddress; From 5855e017ffd2f3523156df28111beda913c2f0b5 Mon Sep 17 00:00:00 2001 From: Javed Hussein Date: Fri, 4 Mar 2022 21:29:38 +0530 Subject: [PATCH 3/3] chore: version up to 1.7.3 PE-1072 --- pubspec.yaml | 2 +- web/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 6b69b5b452..3f4197a691 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -13,7 +13,7 @@ publish_to: 'none' # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.7.2 +version: 1.7.3 environment: sdk: '>=2.13.0 <3.0.0' diff --git a/web/index.html b/web/index.html index e9ff126e46..80efcf32ab 100644 --- a/web/index.html +++ b/web/index.html @@ -37,7 +37,7 @@ - +