User ID is shown also in the room members list (#2332)

This commit is contained in:
Mauro
2024-01-12 18:13:00 +01:00
committed by GitHub
parent 63ff979057
commit e44543fd84
5 changed files with 16 additions and 9 deletions

View File

@@ -88,5 +88,6 @@ struct RoomMembersListScreen_Previews: PreviewProvider, TestablePreview {
NavigationStack {
RoomMembersListScreen(context: viewModel.context)
}
.snapshot(delay: 1.0)
}
}

View File

@@ -31,11 +31,16 @@ struct RoomMembersListScreenMemberCell: View {
avatarSize: .user(on: .roomDetails),
imageProvider: context.imageProvider)
.accessibilityHidden(true)
VStack(alignment: .leading, spacing: 0) {
Text(member.name ?? "")
.font(.compound.bodyMDSemibold)
.foregroundColor(.compound.textPrimary)
.lineLimit(1)
Text(member.id)
.font(.compound.bodySM)
.foregroundColor(.compound.textSecondary)
.lineLimit(1)
}
}
.frame(maxWidth: .infinity, alignment: .leading)
.accessibilityElement(children: .combine)

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:61d335b7118fa8c3c46490768ae6cca2611faf24812b21061e9d13eb5fa7d65c
size 71383
oid sha256:55499e595ef08cf57db3e224d54f10ef2bc7c7b97ef03f653fdd53e7133af9c2
size 87144

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cd2bc1db544ad1ddfd4f7e8895c2335479993782305f309a0746abaf5909ca18
size 67891
oid sha256:23477e22db7bf4d5df68b9227f26d7ce306b729f0d29cc85c8abd481346696b5
size 103846

View File

@@ -0,0 +1 @@
Added the user id in the room members list cells, to avoid ambiguity.