(bug): Critical error thrown in gallery permissions logic.
<!--- Please read this! Before opening a new issue, make sure to search for keywords in the issues filtered by the "T - Bug" label and verify the issue you're about to submit isn't a duplicate. ---> ### Summary When a user tries to access their gallery for the first time, they are sometimes met with a critical error. ### Steps to reproduce * Reset permissions or reinstall app * Try to access your gallery (post attachment is probably the easiest way) ### Platform information S7 Edge (8.0.0) / app v3.3.0 ### What is the current *bug* behavior? User is shown a critical error ### What is the expected *correct* behavior? User should be prompted for permission for the app to access gallery ### Relevant logs and/or screenshots ![Wire_2019-04-02_at_20.44.31](/uploads/2bae4c3abfa389269ba65513cdee36a4/Wire_2019-04-02_at_20.44.31.jpeg) ![Wire_2019-04-02_at_20.44.35](/uploads/023c7eccc52fb4dd775a0f557dc30ea1/Wire_2019-04-02_at_20.44.35.jpeg) ### Possible fixes (If you can, link to the line of code that might be responsible for the problem)
issue