mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 11:34:45 +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]
|
||||
current-public-key [:get-current-public-key]]
|
||||
[list/flat-list {:data messages
|
||||
:render-fn #(message-row {:group-chat group-chat
|
||||
:current-public-key current-public-key
|
||||
:row %1})
|
||||
:render-fn (fn [{:keys [message-id] :as message}]
|
||||
^{:key message-id} [message-row {:group-chat group-chat
|
||||
:current-public-key current-public-key
|
||||
:row message}])
|
||||
:inverted true
|
||||
:onEndReached #(re-frame/dispatch [:load-more-messages])
|
||||
:enableEmptySections true
|
||||
|
Loading…
x
Reference in New Issue
Block a user