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

This commit is contained in:
Narasimha-sc
2026-09-05 11:35:02 +00:00
parent 9ab265af3c
commit 0cfbebfbb2
2 changed files with 6 additions and 5 deletions
@@ -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 {