mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-29 20:56:57 +02:00
Merge commit 'b1847a3ae552c52c06ab4934318dbdb2cf1d8c4b' into feature/4884_merge_foss_1.10.14
# Conflicts: # Config/AppVersion.xcconfig # Podfile.lock # Riot/Modules/Home/AllChats/AllChatsCoordinator.swift # fastlane/.env.default # fastlane/Fastfile
This commit is contained in:
+11
-2
@@ -57,8 +57,17 @@ class UserSessionsDataProvider: UserSessionsDataProviderProtocol {
|
||||
guard let deviceInfo = deviceInfo else {
|
||||
return .permanentlyUnverified
|
||||
}
|
||||
|
||||
guard session.crypto?.crossSigning.canCrossSign == true else {
|
||||
|
||||
// When the app is launched offline the cross signing state is "notBootstrapped"
|
||||
// In this edge case the verification state returned is `.unknown` since we cannot say more even for the current session.
|
||||
guard
|
||||
let crossSigning = session.crypto?.crossSigning,
|
||||
crossSigning.state.rawValue > MXCrossSigningState.notBootstrapped.rawValue
|
||||
else {
|
||||
return .unknown
|
||||
}
|
||||
|
||||
guard crossSigning.canCrossSign else {
|
||||
return deviceInfo.deviceId == session.myDeviceId ? .unverified : .unknown
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -94,7 +94,7 @@ class UserSessionsOverviewService: UserSessionsOverviewServiceProtocol {
|
||||
}
|
||||
|
||||
overviewDataPublisher = .init(UserSessionsOverviewData(currentSession: currentSessionInfo,
|
||||
unverifiedSessions: currentSessionInfo.verificationState == .verified ? [] : [currentSessionInfo],
|
||||
unverifiedSessions: currentSessionInfo.verificationState.isUnverified ? [currentSessionInfo] : [],
|
||||
inactiveSessions: currentSessionInfo.isActive ? [] : [currentSessionInfo],
|
||||
otherSessions: [],
|
||||
linkDeviceEnabled: false))
|
||||
|
||||
Reference in New Issue
Block a user