From c0be0b7670a4c9ea3203e4be9c3b03b55f4c964b Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 17 Apr 2024 12:27:01 +0200 Subject: [PATCH] Update QR code scanner to handle channel and community links (#19507) * Experiment * Fix * Fix * Fix --- src/status_im/contexts/shell/qr_reader/view.cljs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/status_im/contexts/shell/qr_reader/view.cljs b/src/status_im/contexts/shell/qr_reader/view.cljs index 737a6a299d..076982fad6 100644 --- a/src/status_im/contexts/shell/qr_reader/view.cljs +++ b/src/status_im/contexts/shell/qr_reader/view.cljs @@ -71,13 +71,10 @@ (defn on-qr-code-scanned [scanned-text] (cond - (text-for-url-path? scanned-text router/community-with-data-path) - ;; TODO: https://github.com/status-im/status-mobile/issues/18743 - nil - - (text-for-url-path? scanned-text router/channel-path) - ;; TODO: https://github.com/status-im/status-mobile/issues/18743 - nil + (or + (text-for-url-path? scanned-text router/community-with-data-path) + (text-for-url-path? scanned-text router/channel-path)) + (debounce/debounce-and-dispatch [:universal-links/handle-url scanned-text] 300) (text-for-url-path? scanned-text router/user-with-data-path) (let [address (extract-id scanned-text)]