Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86f764a2 authored by Moez Bhatti's avatar Moez Bhatti
Browse files

Reset swipe state if marking already read conversation as read

parent e47bfb54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
        }
    }