|
20 | 20 |
|
21 | 21 | (def ethereum-scheme "ethereum:")
|
22 | 22 |
|
23 |
| -(def uri-schemes ["status-app://"]) |
| 23 | +(def uri-schemes ["status-app://" "status-im://" "status-im:"]) |
24 | 24 |
|
25 | 25 | (def web-prefixes ["https://" "http://" "https://www." "http://www."])
|
26 | 26 |
|
|
40 | 40 | (def routes
|
41 | 41 | [""
|
42 | 42 | {handled-schemes {["c/" :community-data] :community
|
| 43 | + ["p/" :chat-id] :private-chat |
| 44 | + ["cr/" :community-id] :community-requests |
43 | 45 | ["cc/" :chat-data] :community-chat
|
44 | 46 | ["u/" :user-data] :user}
|
45 | 47 | ethereum-scheme eip-extractor}])
|
|
253 | 255 | (and (= handler :user) (:user-id route-params))
|
254 | 256 | (match-contact-async chain route-params cb)
|
255 | 257 |
|
256 |
| - ;; ;; NOTE: removed in `match-uri`, might need this in the future |
257 |
| - ;; (= handler :private-chat) |
258 |
| - ;; (match-private-chat-async chain route-params cb) |
| 258 | + ;; NOTE: removed in `match-uri`, might need this in the future |
| 259 | + (= handler :private-chat) |
| 260 | + (match-private-chat-async chain route-params cb) |
259 | 261 |
|
260 | 262 | ;; ;; NOTE: removed in `match-uri`, might need this in the future
|
261 | 263 | ;; (= handler :group-chat)
|
|
264 | 266 | (validators/valid-public-key? uri)
|
265 | 267 | (match-contact-async chain {:user-id uri} cb)
|
266 | 268 |
|
267 |
| - ;; ;; NOTE: removed in `match-uri`, might need this in the future |
268 |
| - ;; (= handler :community-requests) |
269 |
| - ;; (cb {:type handler :community-id (:community-id route-params)}) |
| 269 | + ;; NOTE: removed in `match-uri`, might need this in the future |
| 270 | + (= handler :community-requests) |
| 271 | + (cb {:type handler :community-id (:community-id route-params)}) |
270 | 272 |
|
271 | 273 | (and (= handler :community) (:community-id route-params))
|
272 | 274 | (cb {:type (community-route-type route-params)
|
|
0 commit comments