From 16bdcce25ca7bfdc7f791852be16c33b438e5883 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Thu, 15 Jul 2021 14:53:15 -0700 Subject: [PATCH] BUGFIX: Unblock Profile --- lib/views/peersettingsview.dart | 6 +++++- pubspec.yaml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/views/peersettingsview.dart b/lib/views/peersettingsview.dart index b33abed9..bd966efb 100644 --- a/lib/views/peersettingsview.dart +++ b/lib/views/peersettingsview.dart @@ -114,7 +114,11 @@ class _PeerSettingsViewState extends State { value: Provider.of(context).isBlocked, onChanged: (bool blocked) { // Save local blocked status - Provider.of(context, listen: false).authorization = ContactAuthorization.blocked; + if (blocked) { + Provider.of(context, listen: false).authorization = ContactAuthorization.blocked; + } else { + Provider.of(context, listen: false).authorization = ContactAuthorization.unknown; + } // Save New peer authorization var profileOnion = Provider.of(context, listen: false).profileOnion; diff --git a/pubspec.yaml b/pubspec.yaml index e0347dfa..5213118a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # 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.1.0+17 +version: 1.1.1+18 environment: sdk: ">=2.12.0 <3.0.0"