mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Remove "history may be shared banner" (#4999)
* Revert "Do not show history visible banner when the user cannot send messages. (#4892)" This reverts commit2e09914cb7. * Revert "Add a banner to encrypted rooms with visible history. (#4851)" This reverts commit6153480d90.
This commit is contained in:
@@ -80,18 +80,7 @@ struct RoomScreenViewState: BindableState {
|
||||
(canAcceptKnocks || canDeclineKnocks || canBan)
|
||||
}
|
||||
|
||||
var identityViolationDetails: RoomScreenFooterViewDetails?
|
||||
var historyVisibleDetails: RoomScreenFooterViewDetails?
|
||||
|
||||
var footerDetails: RoomScreenFooterViewDetails? {
|
||||
if let identityViolationDetails {
|
||||
return identityViolationDetails
|
||||
}
|
||||
guard canSendMessage else {
|
||||
return nil
|
||||
}
|
||||
return historyVisibleDetails
|
||||
}
|
||||
var footerDetails: RoomScreenFooterViewDetails?
|
||||
|
||||
var bindings = RoomScreenViewStateBindings()
|
||||
}
|
||||
@@ -104,13 +93,11 @@ struct RoomScreenViewStateBindings {
|
||||
enum RoomScreenFooterViewAction {
|
||||
case resolvePinViolation(userID: String)
|
||||
case resolveVerificationViolation(userID: String)
|
||||
case dismissHistoryVisibleAlert
|
||||
}
|
||||
|
||||
enum RoomScreenFooterViewDetails {
|
||||
case pinViolation(member: RoomMemberProxyProtocol, learnMoreURL: URL)
|
||||
case verificationViolation(member: RoomMemberProxyProtocol, learnMoreURL: URL)
|
||||
case historyVisible(learnMoreURL: URL)
|
||||
}
|
||||
|
||||
enum PinnedEventsBannerState: Equatable {
|
||||
|
||||
Reference in New Issue
Block a user