Fix swipe-delete delete action handler

Signed-off-by: Oskar Thoren <ot@oskarthoren.com>
This commit is contained in:
Oskar Thoren 2018-03-27 11:36:08 +08:00
parent c1c5854cb1
commit e185acd92b
No known key found for this signature in database
GPG Key ID: 5128AB0637CD85AF
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
(views/defview home-list-deletable [[home-item-id home-item]]
(views/letsubs [swiped? [:delete-swipe-position home-item-id]]
(let [delete-action (if (:chat-id home-item) :remove-chat :remove-browser)
(let [delete-action (if (:chat-id home-item) :delete-chat :remove-browser)
inner-item-view (if (:chat-id home-item)
inner-item/home-list-chat-item-inner-view
inner-item/home-list-browser-item-inner-view)