Do not show history visible banner when the user cannot send messages. (#4892)

This commit is contained in:
Skye Elliot
2026-01-06 16:36:19 +00:00
committed by GitHub
parent a53b9137ef
commit 2e09914cb7
2 changed files with 39 additions and 1 deletions
@@ -84,7 +84,13 @@ struct RoomScreenViewState: BindableState {
var historyVisibleDetails: RoomScreenFooterViewDetails?
var footerDetails: RoomScreenFooterViewDetails? {
identityViolationDetails ?? historyVisibleDetails
if let identityViolationDetails {
return identityViolationDetails
}
guard canSendMessage else {
return nil
}
return historyVisibleDetails
}
var bindings = RoomScreenViewStateBindings()