Extract the disabled composer view into its own struct

This commit is contained in:
Stefan Ceriu
2025-06-06 13:03:54 +03:00
committed by Stefan Ceriu
parent e86fdaacaf
commit fcf50d469e
4 changed files with 25 additions and 10 deletions
@@ -69,11 +69,7 @@ struct ThreadTimelineScreen: View {
if context.viewState.canSendMessage {
composerToolbar
} else {
Text(L10n.screenRoomTimelineNoPermissionToPost)
.font(.compound.bodyLG)
.foregroundStyle(.compound.textDisabled)
.multilineTextAlignment(.center)
.padding(.vertical, 10) // Matches the MessageComposerStyleModifier
ComposerDisabledView()
}
}