parent
6363756c09
commit
813d96df10
|
@ -28,8 +28,9 @@
|
||||||
(name k)
|
(name k)
|
||||||
(-> v
|
(-> v
|
||||||
(assoc :token-gated? (:tokenGated v)
|
(assoc :token-gated? (:tokenGated v)
|
||||||
:can-post? (:canPost v))
|
:can-post? (:canPost v)
|
||||||
(dissoc :canPost :tokenGated)
|
:can-view? (:canView v))
|
||||||
|
(dissoc :canPost :tokenGated :canView)
|
||||||
(update :members walk/stringify-keys))))
|
(update :members walk/stringify-keys))))
|
||||||
{}
|
{}
|
||||||
chats))
|
chats))
|
||||||
|
|
|
@ -235,7 +235,15 @@
|
||||||
collapsed-categories
|
collapsed-categories
|
||||||
full-chats-data]
|
full-chats-data]
|
||||||
(fn [acc
|
(fn [acc
|
||||||
[_ {:keys [name categoryID position id emoji can-post? token-gated?]}]]
|
[_
|
||||||
|
{:keys [name
|
||||||
|
categoryID
|
||||||
|
position
|
||||||
|
id
|
||||||
|
emoji
|
||||||
|
can-view?
|
||||||
|
can-post?
|
||||||
|
token-gated?]}]]
|
||||||
(let [category-id (if (seq categoryID) categoryID constants/empty-category-id)
|
(let [category-id (if (seq categoryID) categoryID constants/empty-category-id)
|
||||||
{:keys [unviewed-messages-count
|
{:keys [unviewed-messages-count
|
||||||
unviewed-mentions-count
|
unviewed-mentions-count
|
||||||
|
@ -261,7 +269,8 @@
|
||||||
;; NOTE: this is a troolean nil->no permissions, true->no access, false ->
|
;; NOTE: this is a troolean nil->no permissions, true->no access, false ->
|
||||||
;; has access
|
;; has access
|
||||||
:locked? (when token-gated?
|
:locked? (when token-gated?
|
||||||
(not can-post?))
|
(and (not can-view?)
|
||||||
|
(not can-post?)))
|
||||||
:id id}]
|
:id id}]
|
||||||
(update-in acc-with-category [category-id :chats] conj categorized-chat))))
|
(update-in acc-with-category [category-id :chats] conj categorized-chat))))
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
|
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
|
||||||
"owner": "status-im",
|
"owner": "status-im",
|
||||||
"repo": "status-go",
|
"repo": "status-go",
|
||||||
"version": "v0.176.10",
|
"version": "v0.177.0",
|
||||||
"commit-sha1": "f69ee07593e8e35bb029f62de670b5554d71c932",
|
"commit-sha1": "894eb5758e8ff8f449312f92149f8698058d0fbb",
|
||||||
"src-sha256": "1icm7l1lhqdz5zbfvagxb051rw3hdm8zvwcxwaizyd1lhbx4v8h5"
|
"src-sha256": "1q0l7ndm6s4kai6zn86mka5fxk2hl60qhlhfy9wh9lrl6a62r15p"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue