Add hooks for room creation and privacy & security settings screen. (#6270)

Add hooks for the create room and security and privacy screens.
This commit is contained in:
mxandreas
2026-10-06 12:05:49 +03:00
committed by GitHub
parent 60c11c8172
commit 4640f9cec0
19 changed files with 131 additions and 40 deletions
@@ -92,7 +92,8 @@ final class CreateRoomScreenViewModelTests {
userSession: userSession,
analytics: AnalyticsServiceMock(.init()),
userIndicatorController: UserIndicatorControllerMock(),
userSettings: userSettings)
userSettings: userSettings,
appHooks: AppHooks())
self.viewModel = viewModel
// Given a form with a blank topic.
@@ -342,7 +343,8 @@ final class CreateRoomScreenViewModelTests {
userSession: userSession,
analytics: AnalyticsServiceMock(.init()),
userIndicatorController: UserIndicatorControllerMock(),
userSettings: userSettings)
userSettings: userSettings,
appHooks: AppHooks())
self.viewModel = viewModel
}
}
@@ -473,6 +473,7 @@ final class SecurityAndPrivacyScreenViewModelTests {
spaceServiceConfiguration: .init(topLevelSpaces: topLevelSpaces,
joinedParentSpaces: joinedParentSpaces))),
userIndicatorController: UserIndicatorControllerMock(),
userSettings: userSettings)
userSettings: userSettings,
appHooks: AppHooks())
}
}