mirror of
https://github.com/status-im/status-react.git
synced 2025-02-03 06:34:14 +00:00
fix ids for chats created after receiving from unknown id
Former-commit-id: b914493283e4b03415ba576533ff02f68c4ada81
This commit is contained in:
parent
ecf8ea0f33
commit
0f6e15a8d0
@ -36,7 +36,7 @@
|
||||
[drawer-view
|
||||
[view st/chats-container
|
||||
[chats-list-toolbar]
|
||||
[list-view {:dataSource (to-datasource (vals @chats))
|
||||
[list-view {:dataSource (to-datasource @chats)
|
||||
:renderRow (fn [row _ _]
|
||||
(list-item [chat-list-item row]))
|
||||
:style st/list-container}]
|
||||
|
@ -8,10 +8,11 @@
|
||||
[status-im.chats-list.views.inner-item :refer
|
||||
[chat-list-item-inner-view]]))
|
||||
|
||||
(defn chat-list-item [{:keys [chat-id] :as chat}]
|
||||
(defn chat-list-item [[chat-id chat]]
|
||||
[touchable-highlight
|
||||
{:on-press #(dispatch [:navigate-to :chat chat-id])}
|
||||
[view [chat-list-item-inner-view (merge chat
|
||||
;; TODO stub data
|
||||
{:new-messages-count 3
|
||||
{:chat-id chat-id
|
||||
:new-messages-count 3
|
||||
:online true})]]])
|
||||
|
Loading…
x
Reference in New Issue
Block a user