mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3699 Chats | Enhancement | Unsubscribe from chats on back navigation (#2473)
This commit is contained in:
parent
363560b459
commit
eddd5b98f3
3 changed files with 17 additions and 5 deletions
|
@ -914,6 +914,9 @@ class ChatViewModel @Inject constructor(
|
|||
|
||||
fun onBackButtonPressed(isSpaceRoot: Boolean) {
|
||||
viewModelScope.launch {
|
||||
withContext(dispatchers.io) {
|
||||
chatContainer.stop(chat = vmParams.ctx)
|
||||
}
|
||||
if (isSpaceRoot) {
|
||||
Timber.d("Root space screen. Releasing resources...")
|
||||
proceedWithClearingSpaceBeforeExitingToVault()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue