mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Do not show history visible banner when the user cannot send messages. (#4892)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user