Only show a badge in the composer if the room is unencrypted. (#3866)

* Partially revert the message composer encryption badges and only show it for unencrypted rooms.

* Update preview test snapshots.

* Update UI test snapshots.
This commit is contained in:
Stefan Ceriu
2025-03-04 14:58:15 +02:00
committed by GitHub
parent 3ecf9a20cd
commit 56d8af1d2e
79 changed files with 156 additions and 159 deletions
@@ -238,12 +238,9 @@ private struct MessageComposerStyleModifier<Header: View>: ViewModifier {
@ViewBuilder
private var icon: some View {
if isEncrypted {
CompoundIcon(\.lockSolid, size: .xSmall, relativeTo: .compound.bodyMD)
.foregroundStyle(.compound.iconSuccessPrimary)
} else {
if !isEncrypted {
CompoundIcon(\.lockOff, size: .xSmall, relativeTo: .compound.bodyMD)
.foregroundStyle(.compound.iconTertiary)
.foregroundStyle(.compound.iconInfoPrimary)
}
}
}