element-ios/Riot/Modules/KeyVerification/Common/KeyVerificationKind.swift

33 lines
870 B
Swift

/*
Copyright 2020-2024 New Vector Ltd.
SPDX-License-Identifier: AGPL-3.0-only
Please see LICENSE in the repository root for full details.
*/
import Foundation
enum KeyVerificationKind {
case otherSession // An other session
case thisSession // My current session is new
case newSession // My other session is new
case user // Another user
var verificationTitle: String {
let title: String
switch self {
case .otherSession:
title = VectorL10n.keyVerificationOtherSessionTitle
case .thisSession:
title = VectorL10n.keyVerificationThisSessionTitle
case .newSession:
title = VectorL10n.keyVerificationNewSessionTitle
case .user:
title = VectorL10n.keyVerificationUserTitle
}
return title
}
}