Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix app asking for contact permission when removing account #6913

Merged
merged 2 commits into from
May 22, 2024

Conversation

murilopereirame
Copy link
Contributor

This commit fixes the problem of the app asking for contact permission even if the user hasn't enabled contact sync for that account.

fixes #6813

This commit fixes the problem of the app asking for contact permission
even if the user hasn't enabled contact sync for that account.
@murilopereirame murilopereirame marked this pull request as ready for review May 3, 2024 14:34
await this.mobileContactsFacade
?.deleteContacts(credentialsAndDbKey.credentials.login, null)
.catch(ofClass(PermissionError, (e) => console.log("No permission to clear contacts", e)))
if (this.configs.getUserSyncContactsWithPhonePreference(credentialsAndDbKey.credentials.userId)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make more sense to use NativeContactsSyncManager here?

@wrdhub wrdhub added this pull request to the merge queue May 22, 2024
Merged via the queue into master with commit 38c808f May 22, 2024
1 check passed
@wrdhub wrdhub deleted the fix-contact-permission-remove-account-6813 branch May 22, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deleting credentials asks for contact permission
3 participants