Update QR code scanner to handle channel and community links (#19507)
* Experiment * Fix * Fix * Fix
This commit is contained in:
parent
6e854428f2
commit
c0be0b7670
|
@ -71,13 +71,10 @@
|
||||||
(defn on-qr-code-scanned
|
(defn on-qr-code-scanned
|
||||||
[scanned-text]
|
[scanned-text]
|
||||||
(cond
|
(cond
|
||||||
|
(or
|
||||||
(text-for-url-path? scanned-text router/community-with-data-path)
|
(text-for-url-path? scanned-text router/community-with-data-path)
|
||||||
;; TODO: https://github.com/status-im/status-mobile/issues/18743
|
(text-for-url-path? scanned-text router/channel-path))
|
||||||
nil
|
(debounce/debounce-and-dispatch [:universal-links/handle-url scanned-text] 300)
|
||||||
|
|
||||||
(text-for-url-path? scanned-text router/channel-path)
|
|
||||||
;; TODO: https://github.com/status-im/status-mobile/issues/18743
|
|
||||||
nil
|
|
||||||
|
|
||||||
(text-for-url-path? scanned-text router/user-with-data-path)
|
(text-for-url-path? scanned-text router/user-with-data-path)
|
||||||
(let [address (extract-id scanned-text)]
|
(let [address (extract-id scanned-text)]
|
||||||
|
|
Loading…
Reference in New Issue