Fix back button sometimes not working after exiting a thread (#6732)

When I reproduced the issue, it looked like the coroutine used to mark as read and then exit the room was canceled, leaving the `markingAsReadAndExiting` variable with `true` value and preventing the exit block from running again.
This commit is contained in:
Jorge Martin Espinosa
2026-05-06 14:35:08 +02:00
committed by GitHub
parent 70452842d3
commit 34f001d22c
@@ -272,6 +272,8 @@ class MessagesPresenter(
}
}
navigator.close()
}.invokeOnCompletion {
markingAsReadAndExiting.set(false)
}
}
}