fix: added check and handled the permissions err for downloading photos in ios
Proposed changes
To handle the permissions error in IOS if permission is denied once. We can only ask the user for permissions once in IOS. Hence if the the user is already denied the permission , this pr gives a better error message and helps to redirect the user to settings page.
Issue(s)
#5285
How to test or reproduce
Screenshots
https://github.com/RocketChat/Rocket.Chat.ReactNative/assets/47176488/075b0510-ffc6-477f-91a3-8fe5cab5dd1e
Types of changes
- [ x] Bugfix (non-breaking change which fixes an issue)
- [ ] Improvement (non-breaking change which improves a current function)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Documentation update (if none of the other choices apply)
Checklist
- [x ] I have read the CONTRIBUTING doc
- [ x] I have signed the CLA
- [ ] Lint and unit tests pass locally with my changes
- [ ] I have added tests that prove my fix is effective or that my feature works (if applicable)
- [ ] I have added necessary documentation (if applicable)
- [ ] Any dependent changes have been merged and published in downstream modules
Further comments
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
Atul Singh seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
Atul Singh seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.