mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 03:20:50 +02:00
KeyVerificationKind: Add new cases.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user