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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -272,6 +272,8 @@ class MessagesPresenter(
}
}
navigator.close()
}.invokeOnCompletion {
markingAsReadAndExiting.set(false)
}
}
}