Periphery cleanup (#5893)

This commit is contained in:
Mauro
2026-07-20 11:16:11 +02:00
committed by GitHub
parent 175aca596e
commit 9093631f8b
275 changed files with 381 additions and 2268 deletions
@@ -21,7 +21,6 @@ class ClientProxy: ClientProxyProtocol {
let mediaLoader: MediaLoaderProtocol
let contentScanner: ContentScannerProxyProtocol?
private let clientQueue: DispatchQueue
private var roomListService: RoomListService
// periphery: ignore - only for retain
@@ -217,8 +216,6 @@ class ClientProxy: ClientProxyProtocol {
client.enableAutomaticBackpagination()
}
clientQueue = .init(label: "ClientProxyQueue", attributes: .concurrent)
mediaLoader = MediaLoader(client: client)
// Route media downloads through a content scanner when one has been configured for the server,
@@ -247,7 +244,6 @@ class ClientProxy: ClientProxyProtocol {
capabilities = HomeserverCapabilitiesProxy(underlyingCapabilities: client.homeserverCapabilities())
let configuredAppService = try await ClientProxyServices(client: client,
actionsSubject: actionsSubject,
notificationSettings: notificationSettings,
appSettings: appSettings)
@@ -746,6 +742,7 @@ class ClientProxy: ClientProxyProtocol {
}
}
// periphery:ignore - might be useful to have
func setUserStatus(_ status: UserStatus.Raw) async -> Result<Void, ClientProxyError> {
do {
try await client.setUserStatus(status: status.rustValue)
@@ -757,6 +754,7 @@ class ClientProxy: ClientProxyProtocol {
}
}
// periphery:ignore - might be useful to have
func removeUserStatus() async -> Result<Void, ClientProxyError> {
do {
try await client.clearUserStatus()
@@ -1450,6 +1448,7 @@ private final class ClientDelegateWrapper: ClientDelegate {
authErrorCallback(isSoftLogout)
}
// periphery:ignore - required by the SDK's delegate protocol
func didRefreshTokens() {
MXLog.info("Delegating session updates to the ClientSessionDelegate.")
}
@@ -1480,7 +1479,6 @@ private struct ClientProxyServices {
let eventStringBuilder: RoomEventStringBuilder
init(client: ClientProtocol,
actionsSubject: PassthroughSubject<ClientProxyAction, Never>,
notificationSettings: NotificationSettingsProxyProtocol,
appSettings: AppSettings) async throws {
let syncService = try await client