android, desktop: don't stack two create-profile forms on a double tap

This commit is contained in:
Narasimha-sc committed 2026-09-05 11:35:02 +00:00
1 parent 9ab265af3c
commit 0cfbebfbb2
2 files changed
+6 -5

No files matched your search

@@ -357,6 +357,7 @@ private fun CreateFirstProfileDesktop(chatModel: ChatModel, close: () -> Unit) {
fun createProfileForInvitation(rhId: Long?, onCreated: (User) -> Unit) {
val modalManager = ModalManager.fullscreen
if (modalManager.isLastModalOpen(ModalViewId.CONTEXT_USER_PICKER_NEW_PROFILE)) return
modalManager.showModalCloseable(id = ModalViewId.CONTEXT_USER_PICKER_NEW_PROFILE) { close ->
CreateProfile(chatModel, close, createProfile = { displayName, shortDescr, image ->
withBGApi {