diff --git a/ElementX/Sources/Mocks/ClientProxyMock.swift b/ElementX/Sources/Mocks/ClientProxyMock.swift index 69d583f05..0a85c8216 100644 --- a/ElementX/Sources/Mocks/ClientProxyMock.swift +++ b/ElementX/Sources/Mocks/ClientProxyMock.swift @@ -74,8 +74,6 @@ extension ClientProxyMock { ignoreUserReturnValue = .success(()) unignoreUserReturnValue = .success(()) - slidingSyncVersion = .native - trackRecentlyVisitedRoomReturnValue = .success(()) recentlyVisitedRoomsReturnValue = .success([]) recentConversationCounterpartsReturnValue = [] diff --git a/ElementX/Sources/Mocks/Generated/GeneratedMocks.swift b/ElementX/Sources/Mocks/Generated/GeneratedMocks.swift index f7d0180cc..30a0e3a8f 100644 --- a/ElementX/Sources/Mocks/Generated/GeneratedMocks.swift +++ b/ElementX/Sources/Mocks/Generated/GeneratedMocks.swift @@ -2093,11 +2093,6 @@ class ClientProxyMock: ClientProxyProtocol, @unchecked Sendable { set(value) { underlyingHomeserver = value } } var underlyingHomeserver: String! - var slidingSyncVersion: SlidingSyncVersion { - get { return underlyingSlidingSyncVersion } - set(value) { underlyingSlidingSyncVersion = value } - } - var underlyingSlidingSyncVersion: SlidingSyncVersion! var canDeactivateAccount: Bool { get { return underlyingCanDeactivateAccount } set(value) { underlyingCanDeactivateAccount = value } diff --git a/ElementX/Sources/Services/Authentication/AuthenticationService.swift b/ElementX/Sources/Services/Authentication/AuthenticationService.swift index 405ed4a82..bae5f8be0 100644 --- a/ElementX/Sources/Services/Authentication/AuthenticationService.swift +++ b/ElementX/Sources/Services/Authentication/AuthenticationService.swift @@ -54,8 +54,6 @@ class AuthenticationService: AuthenticationServiceProtocol { let client = try await makeClient(homeserverAddress: homeserverAddress) let loginDetails = await client.homeserverLoginDetails() - MXLog.info("Sliding sync: \(client.slidingSyncVersion())") - homeserver.loginMode = if loginDetails.supportsOidcLogin() { .oidc(supportsCreatePrompt: loginDetails.supportedOidcPrompts().contains(.create)) } else if loginDetails.supportsPasswordLogin() { @@ -182,7 +180,6 @@ class AuthenticationService: AuthenticationServiceProtocol { try await client.loginWithQrCode(qrCodeData: qrData, oidcConfiguration: appSettings.oidcConfiguration.rustValue, progressListener: listener) - MXLog.info("Sliding sync: \(client.slidingSyncVersion())") return await userSession(for: client) } catch let error as HumanQrLoginError { MXLog.error("QRCode login error: \(error)") diff --git a/ElementX/Sources/Services/Client/ClientProxy.swift b/ElementX/Sources/Services/Client/ClientProxy.swift index 21b8ee2e9..744f94a71 100644 --- a/ElementX/Sources/Services/Client/ClientProxy.swift +++ b/ElementX/Sources/Services/Client/ClientProxy.swift @@ -268,10 +268,6 @@ class ClientProxy: ClientProxyProtocol { client.homeserver() } - var slidingSyncVersion: SlidingSyncVersion { - client.slidingSyncVersion() - } - var canDeactivateAccount: Bool { client.canDeactivateAccount() } diff --git a/ElementX/Sources/Services/Client/ClientProxyProtocol.swift b/ElementX/Sources/Services/Client/ClientProxyProtocol.swift index 4d2378c2e..7e04b4d69 100644 --- a/ElementX/Sources/Services/Client/ClientProxyProtocol.swift +++ b/ElementX/Sources/Services/Client/ClientProxyProtocol.swift @@ -86,8 +86,6 @@ protocol ClientProxyProtocol: AnyObject, MediaLoaderProtocol { var homeserver: String { get } - var slidingSyncVersion: SlidingSyncVersion { get } - var canDeactivateAccount: Bool { get } var userIDServerName: String? { get }