mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 18:12:44 +02:00
Device Manager: Verify session (#6832)
* Initial implementation * Add verificationState to UserSessionInfo * Listen for changes device changes in the service.
This commit is contained in:
@@ -20,5 +20,18 @@ import SwiftUI
|
||||
/// View data for DeviceAvatarView
|
||||
struct DeviceAvatarViewData: Hashable {
|
||||
let deviceType: DeviceType
|
||||
let isVerified: Bool?
|
||||
/// The current state of verification for the session.
|
||||
let verificationState: UserSessionInfo.VerificationState
|
||||
|
||||
/// The name of the shield image to show for the device.
|
||||
var verificationImageName: String {
|
||||
switch verificationState {
|
||||
case .verified:
|
||||
return Asset.Images.userSessionVerified.name
|
||||
case .unverified:
|
||||
return Asset.Images.userSessionUnverified.name
|
||||
case .unknown:
|
||||
return Asset.Images.userSessionVerificationUnknown.name
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user