mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user