Compare commits

...
2 Commits
Author SHA1 Message Date
ibrkhalil 0ff1012c57 Rename endpoint 2024-01-01 16:33:08 +02:00
Ibrkhalil 7849d8debe Add lastOpenedAtKey for communities 2023-12-31 18:27:54 +02:00
3 changed files with 16 additions and 5 deletions
@@ -48,7 +48,8 @@
:tokenPermissions :token-permissions
:communityTokensMetadata :tokens-metadata
:introMessage :intro-message
:muteTill :muted-till})
:muteTill :muted-till
:lastOpenedAt :last-opened-at})
(update :admin-settings
set/rename-keys
{:pinMessageAllMembersEnabled :pin-message-all-members-enabled?})
@@ -169,6 +170,13 @@
{}
categories))}))
(rf/reg-event-fx :communities/update-last-opened-at
(fn [_ [community-id]]
{:json-rpc/call [{:method "wakuext_communityUpdateLastOpenedAt"
:params [community-id]
:on-success #(rf/dispatch [:communities/handle-community (first (:communities %))])
:on-error #(log/error (str "failed to update last opened at for community " %))}]}))
(rf/reg-event-fx :community/fetch
(fn [_]
{:json-rpc/call [{:method "wakuext_communities"
@@ -374,10 +374,11 @@
(rf/dispatch [:activity-center.notifications/dismiss-community-overview id]))
[community-scroll-page community pending?]))
(defn overview
(defn internal-overview
[id]
(let [id (or id (rf/sub [:get-screen-params :community-overview]))
customization-color (rf/sub [:profile/customization-color])]
(rn/use-effect #(rf/dispatch [:communities/update-last-opened-at id]) [id])
[rn/view {:style style/community-overview-container}
[community-card-page-view id]
[quo/floating-shell-button
@@ -385,3 +386,5 @@
:customization-color customization-color
:label (i18n/label :t/jump-to)}}
style/floating-shell-button]]))
(defn overview [id] [:f> internal-overview id])
+3 -3
View File
@@ -3,7 +3,7 @@
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
"owner": "status-im",
"repo": "status-go",
"version": "v0.171.39",
"commit-sha1": "debfe1cab368140b16d2383efc68007d3c28a4ef",
"src-sha256": "0cbj3796qz69ylwcvdw5jsl1cdyrcfk81d7shjkakvjh59rv5sjk"
"version": "4479",
"commit-sha1": "5d5a8edc1697df8879ab587a8e89436907373581",
"src-sha256": "1629dm4bjnl39fhxh6hgvs3wjv0m0c0a717f3xnprfjxn0vhpq5z"
}