From 48966296521c55e3c647e7f696214a416481ac43 Mon Sep 17 00:00:00 2001 From: Mohamad Jaara Date: Tue, 14 Nov 2023 22:11:54 +0100 Subject: [PATCH] fix: disable status update for private users (#2408) --- .../ui/userprofile/self/SelfUserProfileScreen.kt | 12 +++++++----- kalium | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/src/main/kotlin/com/wire/android/ui/userprofile/self/SelfUserProfileScreen.kt b/app/src/main/kotlin/com/wire/android/ui/userprofile/self/SelfUserProfileScreen.kt index 67988735a85..0158bd0c096 100644 --- a/app/src/main/kotlin/com/wire/android/ui/userprofile/self/SelfUserProfileScreen.kt +++ b/app/src/main/kotlin/com/wire/android/ui/userprofile/self/SelfUserProfileScreen.kt @@ -191,11 +191,13 @@ private fun SelfUserProfileContent( else EditableState.IsEditable(onEditClick) ) } - stickyHeader { - CurrentSelfUserStatus( - userStatus = status, - onStatusClicked = onStatusClicked - ) + if (!state.teamName.isNullOrBlank()) { + stickyHeader { + CurrentSelfUserStatus( + userStatus = status, + onStatusClicked = onStatusClicked + ) + } } if (state.otherAccounts.isNotEmpty()) { stickyHeader { diff --git a/kalium b/kalium index b1cb22e62ef..e70c7204158 160000 --- a/kalium +++ b/kalium @@ -1 +1 @@ -Subproject commit b1cb22e62ef808c2c08ad2c734d1334a4ec033cf +Subproject commit e70c7204158a7f0b00b78d46c6a33a007ed090e7