From 1a88b647b4eff455cd653862aebffa5093468f7d Mon Sep 17 00:00:00 2001 From: alwx Date: Mon, 1 May 2017 19:23:46 +0300 Subject: [PATCH] No camera is shown if scan QR. White screen is shown instead. (#1120) --- src/status_im/qr_scanner/handlers.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/status_im/qr_scanner/handlers.cljs b/src/status_im/qr_scanner/handlers.cljs index 6a6452ffd1..d19a81d6db 100644 --- a/src/status_im/qr_scanner/handlers.cljs +++ b/src/status_im/qr_scanner/handlers.cljs @@ -13,7 +13,9 @@ (defn navigate-to-scanner [_ [_ identifier]] - (dispatch [:navigate-to :qr-scanner identifier])) + (dispatch [:request-permissions + [:camera] + #(dispatch [:navigate-to :qr-scanner identifier])])) (register-handler :scan-qr-code (after navigate-to-scanner)