mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-25 19:10:49 +02:00
Expand all if and guard constructs involving @available(iOS 14... or #available(iOS 14...
Signed-off-by: Johannes Marbach <johannesm@element.io>
This commit is contained in:
@@ -104,13 +104,7 @@ class RoomActionProvider: RoomActionProviderProtocol {
|
||||
}
|
||||
|
||||
private var leaveAction: UIAction {
|
||||
let image: UIImage?
|
||||
if #available(iOS 14.0, *) {
|
||||
image = UIImage(systemName: "rectangle.righthalf.inset.fill.arrow.right")
|
||||
} else {
|
||||
image = UIImage(systemName: "rectangle.xmark")
|
||||
}
|
||||
|
||||
let image = UIImage(systemName: "rectangle.righthalf.inset.fill.arrow.right")
|
||||
let action = UIAction(title: VectorL10n.homeContextMenuLeave, image: image) { [weak self] action in
|
||||
guard let self = self else { return }
|
||||
self.service.leaveRoom(promptUser: true)
|
||||
|
||||
Reference in New Issue
Block a user