mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Remove the CommonSettingsProtocol and use UserSession to carry multiple dependencies. (#6302)
* Remove the CommonSettingsProtocol. * Replace multiple dependencies with the UserSession when it carries them.
This commit is contained in:
@@ -468,12 +468,13 @@ final class SecurityAndPrivacyScreenViewModelTests {
|
||||
roomProxy.updateJoinRuleReturnValue = .success(())
|
||||
roomProxy.updateRoomDirectoryVisibilityReturnValue = .success(())
|
||||
|
||||
let clientProxy = ClientProxyMock(.init(userIDServerName: "matrix.org",
|
||||
spaceServiceConfiguration: .init(topLevelSpaces: topLevelSpaces,
|
||||
joinedParentSpaces: joinedParentSpaces)))
|
||||
|
||||
viewModel = SecurityAndPrivacyScreenViewModel(roomProxy: roomProxy,
|
||||
clientProxy: ClientProxyMock(.init(userIDServerName: "matrix.org",
|
||||
spaceServiceConfiguration: .init(topLevelSpaces: topLevelSpaces,
|
||||
joinedParentSpaces: joinedParentSpaces))),
|
||||
userSession: UserSessionMock(.init(clientProxy: clientProxy, userSettings: userSettings)),
|
||||
userIndicatorController: UserIndicatorControllerMock(),
|
||||
userSettings: userSettings,
|
||||
appHooks: AppHooks())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user