Conversation
tomholub
left a comment
There was a problem hiding this comment.
Looks good - sharing general code feedback. Didn't run it yet
|
Tried to log in, saw the "Gmail" permissing unchecked. Left it unchecked and proceeded. No visual feedback in the app, this was in the logs: |
|
However, on the first prompt it was still showing 3 other permissions + checkbox for Gmail. Could we split it into two steps? In first step, grant 3 other permissions. In second step, grant Gmail (which will then be without checkbox). |
|
In the case when user doesn't check Simulator.Screen.Recording.-.iPhone.12.-.2021-11-19.at.22.28.06.mp4We can remove |
|
Got it. I'll re-test |
tomholub
left a comment
There was a problem hiding this comment.
code good - need to retry manual testing
|
Same (unchecked gmail) |
|
Currently, if I only choose one of the two, it will not tell me that I did something wrong and yet it will not search contacts (it seems). First though, need to confirm we really need both. And before that will need to debug the issue I'm having when logging in. Maybe add some more logs? |
|
I'm working on adding popup with error message as you've described here #1043 (comment), then users will see message about missing scope.
Yes, it's strange as I didn't notice any issue with unchecked mail permission during testing - it always redirected me to Did you remove |
I did remove it - else I wouldn't see the grant screen at all. Once I've seen the error once and try again, it only asks for Gmail auth (that means from google's perspective it was successfully granted) and proceeds successfully. |
|
Marking as draft until resolved |
# Conflicts: # FlowCrypt/Extensions/UIViewControllerExtensions.swift # FlowCrypt/Functionality/Services/GlobalRouter.swift
|
@tomholub I added handling for contacts permission errors and also updated logging to print more detailed messages. |
|
updated logs: I'm testing by going to a menu and then adding a secondary account - sorry for not mentioning it earlier. It does work properly when I just tried it when adding a first account, issue can be reproduced when adding additional accounts (and leaving out one scope) - please see if you also observe the same. |
|
@tomholub I reproduced this issue with secondary account adding, it's fixed now ✅ |
|
@sosnovsky all good but tests seem unhappy |
|
It seems UI tests for other PRs and |

This PR separates asking for mail and contacts permissions.
close #530
Tests (delete all except exactly one):
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):