Skip to content

Commit

Permalink
fix: showing user statuses on participants list [WPB-11191]
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk committed Sep 30, 2024
1 parent 8263054 commit a58c160
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ sealed class UserProfileAvatarType {
* This avatar has indicators in the form of borders around the avatar.
*/
sealed class WithIndicators : UserProfileAvatarType() {
data class RegularUser(val legalHoldIndicatorVisible: Boolean) : WithIndicators()
data class RegularUser(val legalHoldIndicatorVisible: Boolean = false) : WithIndicators()
data class TemporaryUser(val expiresAt: Instant) : WithIndicators()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import com.wire.android.ui.common.RowItemTemplate
import com.wire.android.ui.common.UserBadge
import com.wire.android.ui.common.UserProfileAvatar
import com.wire.android.ui.common.UserProfileAvatarType.WithIndicators
import com.wire.android.ui.common.UserProfileAvatarType.WithoutIndicators
import com.wire.android.ui.common.dimensions
import com.wire.android.ui.home.conversations.details.participants.model.UIParticipant
import com.wire.android.ui.home.conversations.search.HighlightName
Expand Down Expand Up @@ -77,7 +76,7 @@ fun ConversationParticipantItem(
modifier = Modifier.padding(
start = dimensions().spacing8x
),
type = uiParticipant.expiresAt?.let { WithIndicators.TemporaryUser(it) } ?: WithoutIndicators
type = uiParticipant.expiresAt?.let { WithIndicators.TemporaryUser(it) } ?: WithIndicators.RegularUser()
)
},
titleStartPadding = dimensions().spacing0x,
Expand Down

0 comments on commit a58c160

Please sign in to comment.