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:
committed by
GitHub
parent
70452842d3
commit
34f001d22c
+2
@@ -272,6 +272,8 @@ class MessagesPresenter(
|
||||
}
|
||||
}
|
||||
navigator.close()
|
||||
}.invokeOnCompletion {
|
||||
markingAsReadAndExiting.set(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user