mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Change Leave Room to Leave Conversation for DMs (#2354)
This commit is contained in:
@@ -147,15 +147,19 @@ struct LeaveRoomAlertItem: AlertProtocol {
|
||||
}
|
||||
|
||||
let roomId: String
|
||||
let isDM: Bool
|
||||
let state: RoomState
|
||||
let title = L10n.actionLeaveRoom
|
||||
let confirmationTitle = L10n.actionLeave
|
||||
let cancelTitle = L10n.actionCancel
|
||||
|
||||
var title: String {
|
||||
isDM ? L10n.actionLeaveConversation : L10n.actionLeaveRoom
|
||||
}
|
||||
|
||||
var subtitle: String {
|
||||
switch state {
|
||||
case .empty: return L10n.leaveRoomAlertEmptySubtitle
|
||||
case .private: return L10n.leaveRoomAlertPrivateSubtitle
|
||||
case .private: return isDM ? L10n.leaveConversationAlertSubtitle : L10n.leaveRoomAlertPrivateSubtitle
|
||||
case .public: return L10n.leaveRoomAlertSubtitle
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user