mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Add a Link New Device screen (behind a feature flag). (#4811)
This commit is contained in:
@@ -144,6 +144,7 @@ extension ClientProxyMock {
|
||||
|
||||
underlyingIsReportRoomSupported = true
|
||||
underlyingIsLiveKitRTCSupported = true
|
||||
underlyingIsLoginWithQRCodeSupported = true
|
||||
|
||||
underlyingTimelineMediaVisibilityPublisher = CurrentValueSubject<TimelineMediaVisibility, Never>(configuration.timelineMediaVisibility).asCurrentValuePublisher()
|
||||
underlyingHideInviteAvatarsPublisher = CurrentValueSubject<Bool, Never>(configuration.hideInviteAvatars).asCurrentValuePublisher()
|
||||
|
||||
@@ -2332,6 +2332,23 @@ class ClientProxyMock: ClientProxyProtocol, @unchecked Sendable {
|
||||
}
|
||||
var underlyingIsLiveKitRTCSupported: Bool!
|
||||
var isLiveKitRTCSupportedClosure: (() async -> Bool)?
|
||||
var isLoginWithQRCodeSupportedCallsCount = 0
|
||||
var isLoginWithQRCodeSupportedCalled: Bool {
|
||||
return isLoginWithQRCodeSupportedCallsCount > 0
|
||||
}
|
||||
|
||||
var isLoginWithQRCodeSupported: Bool {
|
||||
get async {
|
||||
isLoginWithQRCodeSupportedCallsCount += 1
|
||||
if let isLoginWithQRCodeSupportedClosure = isLoginWithQRCodeSupportedClosure {
|
||||
return await isLoginWithQRCodeSupportedClosure()
|
||||
} else {
|
||||
return underlyingIsLoginWithQRCodeSupported
|
||||
}
|
||||
}
|
||||
}
|
||||
var underlyingIsLoginWithQRCodeSupported: Bool!
|
||||
var isLoginWithQRCodeSupportedClosure: (() async -> Bool)?
|
||||
var maxMediaUploadSizeCallsCount = 0
|
||||
var maxMediaUploadSizeCalled: Bool {
|
||||
return maxMediaUploadSizeCallsCount > 0
|
||||
|
||||
Reference in New Issue
Block a user