Reset swipe state if marking already read conversation as read

This commit is contained in:
Moez Bhatti
2020-02-05 23:19:40 -05:00
parent e47bfb54ee
commit 86f764a288
@@ -140,7 +140,7 @@ class ConversationItemTouchCallback @Inject constructor(
// This will trigger the animation back to neutral state
val action = if (direction == ItemTouchHelper.RIGHT) rightAction else leftAction
if (action != Preferences.SWIPE_ACTION_ARCHIVE && action != Preferences.SWIPE_ACTION_READ) {
if (action != Preferences.SWIPE_ACTION_ARCHIVE) {
adapter?.notifyItemChanged(viewHolder.adapterPosition)
}
}