Fix asking for contact permission

This commit is contained in:
Stephen Paul Weber 2024-10-23 04:28:53 +02:00 committed by Arne
parent a5c4fb0cf3
commit 9f7fee4033

View file

@ -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,