Update QR code scanner to handle channel and community links (#19507)

* Experiment

* Fix

* Fix

* Fix
This commit is contained in:
Alexander 2024-04-17 12:27:01 +02:00 committed by GitHub
parent 6e854428f2
commit c0be0b7670
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 7 deletions

View File

@ -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)]