Merge pull request #6318 from thundernest/restore_move_to_next_logic
Restore previous logic to select the next message after deleting the current one
This commit is contained in:
commit
20935c3e4f
1 changed files with 7 additions and 1 deletions
|
@ -1198,10 +1198,16 @@ open class MessageList :
|
|||
}
|
||||
|
||||
private fun showLogicalNextMessage(): Boolean {
|
||||
return when (lastDirection) {
|
||||
val couldMoveInLastDirection = when (lastDirection) {
|
||||
Direction.NEXT -> showNextMessage()
|
||||
Direction.PREVIOUS -> showPreviousMessage()
|
||||
}
|
||||
|
||||
return if (couldMoveInLastDirection) {
|
||||
true
|
||||
} else {
|
||||
showNextMessage() || showPreviousMessage()
|
||||
}
|
||||
}
|
||||
|
||||
override fun setProgress(enable: Boolean) {
|
||||
|
|
Loading…
Reference in a new issue