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
@@ -232,9 +232,9 @@ struct ComposerToolbar: View {
private var composerPlaceholder: String {
if context.viewState.isRoomEncrypted {
return L10n.richTextEditorComposerEncryptedPlaceholder
} else {
return L10n.richTextEditorComposerPlaceholder
} else {
return L10n.richTextEditorComposerUnencryptedPlaceholder
}
}