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 01f42546e1
commit 5ff575eb4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
Text(member.name ?? "")
.font(.compound.bodyMDSemibold)
.foregroundColor(.compound.textPrimary)
.lineLimit(1)
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)

Binary file not shown.

View File

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