diff --git a/src/syng_im/components/chat.cljs b/src/syng_im/components/chat.cljs index cffdf19a9b..6059b560d9 100644 --- a/src/syng_im/components/chat.cljs +++ b/src/syng_im/components/chat.cljs @@ -266,6 +266,7 @@ [toolbar navigator @chat @show-actions-atom] (let [last-msg-id (:last-msg-id @chat)] [list-view {:dataSource datasource + :enableEmptySections true :renderScrollComponent (fn [props] (invertible-scroll-view (js->clj props))) :renderRow (fn [row section-id row-id] diff --git a/src/syng_im/components/chat/new_participants.cljs b/src/syng_im/components/chat/new_participants.cljs index b3e1b4e446..49c1f6c511 100644 --- a/src/syng_im/components/chat/new_participants.cljs +++ b/src/syng_im/components/chat/new_participants.cljs @@ -35,6 +35,7 @@ :backgroundColor "white"}} [new-participants-toolbar navigator] [list-view {:dataSource contacts-ds + :enableEmptySections true :renderRow (fn [row section-id row-id] (r/as-element [new-participant-contact (js->clj row :keywordize-keys true) navigator])) :style {:backgroundColor "white"}}]])))) diff --git a/src/syng_im/components/chat/remove_participants.cljs b/src/syng_im/components/chat/remove_participants.cljs index dded8733b8..59474ea116 100644 --- a/src/syng_im/components/chat/remove_participants.cljs +++ b/src/syng_im/components/chat/remove_participants.cljs @@ -35,6 +35,7 @@ :backgroundColor "white"}} [remove-participants-toolbar navigator] [list-view {:dataSource contacts-ds + :enableEmptySections true :renderRow (fn [row section-id row-id] (r/as-element [new-participant-contact (js->clj row :keywordize-keys true) navigator])) :style {:backgroundColor "white"}}]])))) diff --git a/src/syng_im/components/chat/suggestions.cljs b/src/syng_im/components/chat/suggestions.cljs index d4edbc9800..6729c1a4fa 100644 --- a/src/syng_im/components/chat/suggestions.cljs +++ b/src/syng_im/components/chat/suggestions.cljs @@ -65,5 +65,6 @@ :backgroundColor color-white :borderRadius 5}} [list-view {:dataSource (to-datasource suggestions) + :enableEmptySections true :renderRow render-row :style {}}]]))))) diff --git a/src/syng_im/components/chats/chats_list.cljs b/src/syng_im/components/chats/chats_list.cljs index b41a54fbaa..d7b2baa5e9 100644 --- a/src/syng_im/components/chats/chats_list.cljs +++ b/src/syng_im/components/chats/chats_list.cljs @@ -46,6 +46,7 @@ :backgroundColor "white"}} [chats-list-toolbar] [list-view {:dataSource datasource + :enableEmptySections true :renderRow (fn [row section-id row-id] (r/as-element [chat-list-item row navigator])) :style {:backgroundColor "white"}}] diff --git a/src/syng_im/components/chats/new_group.cljs b/src/syng_im/components/chats/new_group.cljs index f2461b4d73..51fec1a25b 100644 --- a/src/syng_im/components/chats/new_group.cljs +++ b/src/syng_im/components/chats/new_group.cljs @@ -85,6 +85,7 @@ :lineHeight 20}} "Add members"]]] [list-view {:dataSource contacts-ds + :enableEmptySections true :renderRow (fn [row section-id row-id] (r/as-element [new-group-contact (js->clj row :keywordize-keys true) navigator])) :style {:backgroundColor "white"}}]]])))) diff --git a/src/syng_im/components/contact_list/contact_list.cljs b/src/syng_im/components/contact_list/contact_list.cljs index 06fd584f7c..d4c3ef242c 100644 --- a/src/syng_im/components/contact_list/contact_list.cljs +++ b/src/syng_im/components/contact_list/contact_list.cljs @@ -47,5 +47,6 @@ [contact-list-toolbar navigator] (when contacts-ds [list-view {:dataSource contacts-ds + :enableEmptySections true :renderRow (partial render-row navigator) :style {:backgroundColor "white"}}])]))))