From eaf137ec1855c86a0cb04d2b5958300234e86688 Mon Sep 17 00:00:00 2001 From: Narasimha-sc <166327228+Narasimha-sc@users.noreply.github.com> Date: Fri, 4 Sep 2026 17:19:23 +0000 Subject: [PATCH] ui: fix the first chat profile's avatar stored as its description Profile is (displayName, fullName, shortDescr, description, image, ...), so passing image as the fourth positional argument stores it in description and the avatar is silently dropped. Both are String?, so it type-checks. Reached from the user picker's "Create chat profile" row, which is desktop-only (chatModel.desktopNoUserNoRemote). --- .../commonMain/kotlin/chat/simplex/common/views/WelcomeView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/WelcomeView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/WelcomeView.kt index 843bacecec..6f6b27209b 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/WelcomeView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/WelcomeView.kt @@ -355,7 +355,7 @@ private fun CreateFirstProfileDesktop(chatModel: ChatModel, close: () -> Unit) { fun createProfileInNoProfileSetup(displayName: String, image: String? = null, close: () -> Unit) { withBGApi { - val user = controller.apiCreateActiveUser(null, Profile(displayName.trim(), "", null, image)) ?: return@withBGApi + val user = controller.apiCreateActiveUser(null, Profile(displayName.trim(), "", null, image = image)) ?: return@withBGApi if (!chatModel.connectedToRemote()) { chatModel.localUserCreated.value = true }