android, desktop: close notes tab on switching between chats (#4246)

This commit is contained in:
Stanislav Dmitrenko
2024-05-28 22:35:43 +07:00
committed by GitHub
parent 2143eb2d7a
commit 1b04423745

View File

@@ -200,6 +200,10 @@ fun ChatView(chatId: String, chatModel: ChatModel, onComposed: suspend (chatId:
link = it
preloadedLink = it
}, close)
} else {
LaunchedEffect(Unit) {
close()
}
}
}
}