mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Implemented PSG-680 - Sessions overview security recommendations
- remove uppercased strings from localizables - moved inactivity computation to the service
This commit is contained in:
committed by
Stefan Ceriu
parent
6585aaf523
commit
7eee1cceab
@@ -136,13 +136,14 @@ struct UserSessionCardViewPreview: View {
|
||||
let viewData: UserSessionCardViewData
|
||||
|
||||
init(isCurrentSessionInfo: Bool = false) {
|
||||
let session = UserSessionInfo(sessionId: "alice",
|
||||
sessionName: "iOS",
|
||||
let session = UserSessionInfo(id: "alice",
|
||||
name: "iOS",
|
||||
deviceType: .mobile,
|
||||
isVerified: false,
|
||||
lastSeenIP: "10.0.0.10",
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 100,
|
||||
isCurrentSession: isCurrentSessionInfo)
|
||||
isActive: true,
|
||||
isCurrent: isCurrentSessionInfo)
|
||||
|
||||
viewData = UserSessionCardViewData(session: session)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user