mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-15 08:36:28 +00:00
android, desktop: don't stack two create-profile forms on a double tap
This commit is contained in:
+1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user