KeyVerificationKind: Add new cases.

This commit is contained in:
SBiOSoftWhare
2020-04-27 19:46:44 +02:00
parent 2b6bf31de6
commit a272338f59
@@ -16,6 +16,26 @@
import Foundation
enum KeyVerificationKind {
case device
case user
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
}
}