File tree 5 files changed +13
-13
lines changed
ui/screens/profile/contact
5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 321
321
(log/error " mute chat failed" chat-id error)
322
322
{:db (assoc-in db [:chats chat-id :muted ] (not muted?))})
323
323
324
- (fx/defn mute-chat-successful
325
- {:events [::mute-chat-successful ]}
326
- [{:keys [db]} chat-id response]
327
- (let [chat (chats-store/<-rpc (first (:chats response)))]
328
- {:db (assoc-in db [:chats chat-id] chat)}))
329
-
330
324
(fx/defn mute-chat
331
325
{:events [::mute-chat-toggled ]}
332
326
[{:keys [db] :as cofx} chat-id muted?]
335
329
::json-rpc/call [{:method (json-rpc/call-ext-method method)
336
330
:params [chat-id]
337
331
:on-error #(re-frame/dispatch [::mute-chat-failed chat-id muted? %])
338
- :on-success #(re-frame/dispatch [ ::mute-chat-successful chat-id %] )}]}))
332
+ :on-success #(log/debug " muted chat successfully " )}]}))
339
333
340
334
(fx/defn show-profile
341
335
{:events [:chat.ui/show-profile ]}
Original file line number Diff line number Diff line change 71
71
(dissoc :members )))
72
72
73
73
(fx/defn fetch-chats-rpc [cofx {:keys [on-success]}]
74
- {::json-rpc/call [{:method (json-rpc/call-ext-method " activeChats " )
74
+ {::json-rpc/call [{:method (json-rpc/call-ext-method " chats " )
75
75
:params []
76
76
:on-success #(on-success (map <-rpc %))
77
77
:on-failure #(log/error " failed to fetch chats" 0 -1 %)}]})
Original file line number Diff line number Diff line change 780
780
(fn [{:keys [synced-from]}]
781
781
synced-from))
782
782
783
+ (re-frame/reg-sub
784
+ :chats/muted
785
+ (fn [[_ chat-id] _]
786
+ (re-frame/subscribe [:chat-by-id chat-id]))
787
+ (fn [{:keys [muted]}]
788
+ muted))
789
+
783
790
(re-frame/reg-sub
784
791
:chats/chat-type
785
792
(fn [[_ chat-id] _]
Original file line number Diff line number Diff line change 160
160
current-chat-id @(re-frame/subscribe [:chats/current-profile-chat ])
161
161
messages @(re-frame/subscribe [:chats/profile-messages-stream current-chat-id])
162
162
no-messages? @(re-frame/subscribe [:chats/chat-no-messages? current-chat-id])
163
- muted? ( :muted @(re-frame/subscribe [:chats/chat public-key]) )
163
+ muted? @(re-frame/subscribe [:chats/muted public-key])
164
164
[first-name second-name] (multiaccounts/contact-two-names contact true )
165
165
on-share #(re-frame/dispatch [:show-popover (merge
166
166
{:view :share-chat-key
205
205
:render-data {:chat-id current-chat-id}
206
206
:render-fn status.views/render-message
207
207
:data messages}]])))
208
-
Original file line number Diff line number Diff line change 2
2
"_comment" : " DO NOT EDIT THIS FILE BY HAND. USE 'scripts/update-status-go.sh <tag>' instead" ,
3
3
"owner" : " status-im" ,
4
4
"repo" : " status-go" ,
5
- "version" : " v0.79.7" ,
6
- "commit-sha1" : " 60de443e89bd6a5d4f5b71e7038528d27f26090b " ,
7
- "src-sha256" : " 0gjgkqyvpbwg8drwi2mpcan5vxqrnrzl1j0ccmm2m8vq7j3b1332 "
5
+ "version" : " v0.79.7+hotfix.1 " ,
6
+ "commit-sha1" : " f27cc7ef218383984b3a1cc7cdb69e649cbeeca2 " ,
7
+ "src-sha256" : " 1xcby30rqiqcr05nrjv720ak3prgdcp3644sld8cbnxr1j0szd67 "
8
8
}
You can’t perform that action at this time.
0 commit comments