mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Disable the threaded timeline composer when the room is read only.
This commit is contained in:
committed by
Stefan Ceriu
parent
9804be70eb
commit
c3a9e5deaa
@@ -64,16 +64,15 @@ struct ThreadTimelineScreen: View {
|
||||
|
||||
@ViewBuilder
|
||||
private var composer: some View {
|
||||
#warning("Check permissions here too")
|
||||
// if roomContext.viewState.canSendMessage {
|
||||
composerToolbar
|
||||
// } else {
|
||||
// Text(L10n.screenRoomTimelineNoPermissionToPost)
|
||||
// .font(.compound.bodyLG)
|
||||
// .foregroundStyle(.compound.textDisabled)
|
||||
// .multilineTextAlignment(.center)
|
||||
// .padding(.vertical, 10) // Matches the MessageComposerStyleModifier
|
||||
// }
|
||||
if context.viewState.canSendMessage {
|
||||
composerToolbar
|
||||
} else {
|
||||
Text(L10n.screenRoomTimelineNoPermissionToPost)
|
||||
.font(.compound.bodyLG)
|
||||
.foregroundStyle(.compound.textDisabled)
|
||||
.multilineTextAlignment(.center)
|
||||
.padding(.vertical, 10) // Matches the MessageComposerStyleModifier
|
||||
}
|
||||
}
|
||||
|
||||
private var scrollToBottomButton: some View {
|
||||
|
||||
Reference in New Issue
Block a user