mirror of
https://github.com/status-im/status-react.git
synced 2025-01-25 18:29:37 +00:00
Add react key metadata to messages list
This commit is contained in:
parent
3cdb05e5b8
commit
dff107f669
@ -77,9 +77,10 @@
|
|||||||
(letsubs [messages [:get-current-chat-messages]
|
(letsubs [messages [:get-current-chat-messages]
|
||||||
current-public-key [:get-current-public-key]]
|
current-public-key [:get-current-public-key]]
|
||||||
[list/flat-list {:data messages
|
[list/flat-list {:data messages
|
||||||
:render-fn #(message-row {:group-chat group-chat
|
:render-fn (fn [{:keys [message-id] :as message}]
|
||||||
|
^{:key message-id} [message-row {:group-chat group-chat
|
||||||
:current-public-key current-public-key
|
:current-public-key current-public-key
|
||||||
:row %1})
|
:row message}])
|
||||||
:inverted true
|
:inverted true
|
||||||
:onEndReached #(re-frame/dispatch [:load-more-messages])
|
:onEndReached #(re-frame/dispatch [:load-more-messages])
|
||||||
:enableEmptySections true
|
:enableEmptySections true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user