Removed forwarded properties from the UserSessionProtocol as the ClientProxy is already fully exposed

This commit is contained in:
Stefan Ceriu
2024-05-27 14:47:55 +03:00
committed by Stefan Ceriu
parent 3a904ebc9d
commit e93e75778a
7 changed files with 12 additions and 24 deletions
@@ -23,10 +23,6 @@ class UserSession: UserSessionProtocol {
private var cancellables = Set<AnyCancellable>()
private var authErrorCancellable: AnyCancellable?
var userID: String { clientProxy.userID }
var deviceID: String? { clientProxy.deviceID }
var homeserver: String { clientProxy.homeserver }
let clientProxy: ClientProxyProtocol
let mediaProvider: MediaProviderProtocol
@@ -28,10 +28,6 @@ struct SessionSecurityState: Equatable {
// sourcery: AutoMockable
protocol UserSessionProtocol {
var homeserver: String { get }
var userID: String { get }
var deviceID: String? { get }
var clientProxy: ClientProxyProtocol { get }
var mediaProvider: MediaProviderProtocol { get }
var voiceMessageMediaManager: VoiceMessageMediaManagerProtocol { get }