From 9f7fee40334c613fc726034999475f325c3749b2 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 23 Oct 2024 04:28:53 +0200 Subject: [PATCH] Fix asking for contact permission --- .../siacs/conversations/ui/StartConversationActivity.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java index 529a391bfd..62229a6338 100644 --- a/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java @@ -558,7 +558,7 @@ public class StartConversationActivity extends XmppActivity super.onStart(); mConferenceAdapter.refreshSettings(); mContactsAdapter.refreshSettings(); - if (pendingViewIntent.peek() == null) { + if (!createdByViewIntent) { askForContactsPermissions(); requestNotificationPermissionIfNeeded(); } @@ -1080,10 +1080,7 @@ public class StartConversationActivity extends XmppActivity final String consent = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()) .getString(PREF_KEY_CONTACT_INTEGRATION_CONSENT, null); - final boolean requiresConsent = - (QuickConversationsService.isQuicksy() - || QuickConversationsService.isPlayStoreFlavor()) - && !"agreed".equals(consent); + final boolean requiresConsent = !"agreed".equals(consent); if (requiresConsent && "declined".equals(consent)) { Log.d( Config.LOGTAG,