mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Show recovery instead of verification if this is the last session and recovery is set up
* Show recovery instead of verification if this is the last session and recovery is set up * Rename `recoveryKeyState` to `recoveryState` * Remove duplicates on session security state changes. * Fix missing "Save recovery key" button * Fix unit tests * Rename `isLastDevice` to `isOnlyDeviceLeft` * Address PR comments
This commit is contained in:
@@ -32,8 +32,8 @@ final class UserSessionTests: XCTestCase {
|
||||
|
||||
func test_whenUserSessionReceivesSyncUpdateAndSessionControllerRetrievedAndSessionNotVerified_sessionVerificationNeededEventReceived() throws {
|
||||
let expectation = expectation(description: "SessionVerificationNeeded expectation")
|
||||
userSession.sessionVerificationState.sink { isVerified in
|
||||
if let isVerified, isVerified == false {
|
||||
userSession.sessionSecurityStatePublisher.sink { securityState in
|
||||
if securityState.verificationState == .unverified {
|
||||
expectation.fulfill()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user