mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
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()
|
navigator.close()
|
||||||
|
}.invokeOnCompletion {
|
||||||
|
markingAsReadAndExiting.set(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user