Add react key metadata to messages list

This commit is contained in:
janherich 2018-01-16 18:21:10 +01:00
parent 3cdb05e5b8
commit dff107f669
No known key found for this signature in database
GPG Key ID: C23B473AFBE94D13

View File

@ -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