Add call icon next to members in call (#5941)

* feat: add call icon next to members in call

* feat: use matrix rtc room status for in-call

* chore: revert xcodeproj change

* chore: update preview tests

* chore: Update ElementX.xcscheme

* chore: undo room member status proxy

---------

Co-authored-by: Kai <nankeen@users.noreply.github.com>
This commit is contained in:
Kai
2026-08-03 12:37:31 +01:00
committed by Doug
parent 1407a1d5b4
commit 3ab0aacabf
14 changed files with 90 additions and 8 deletions
@@ -55,6 +55,12 @@ struct RoomMembersListScreenMemberCell: View {
.font(.compound.bodyLG)
.foregroundStyle(.compound.textSecondary)
}
if listEntry.isInCall {
CompoundIcon(\.videoCallSolid, size: .small, relativeTo: .compound.bodyLG)
.foregroundStyle(.compound.iconAccentPrimary)
.accessibilityLabel(L10n.commonOnACall)
}
}
.overlay(alignment: .bottom) {
if !isLast {
@@ -117,6 +123,9 @@ struct RoomMembersListMemberCell_Previews: PreviewProvider, TestablePreview {
verificationState: .verified),
.init(member: .init(withProxy: RoomMemberProxyMock.mockModerator),
verificationState: .verificationViolation),
.init(member: .init(withProxy: RoomMemberProxyMock.mockFrank),
verificationState: .notVerified,
isInCall: true),
.init(member: .init(withProxy: RoomMemberProxyMock(with: .init(userID: "@nodisplayname:matrix.org",
membership: .join))),
verificationState: .notVerified),