mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Add a new UserHooks container and move some AppHooks. (#6332)
* Add a UserHooks system with just the CreateRoomScreenHook for now. * Move more hooks into UserHooks. * Pass the ClientProxy to makeUserHooks instead of calling AppHooks.configure(with:). * Update the Enterprise submodule.
This commit is contained in:
@@ -22,7 +22,6 @@ struct UserProfileScreenViewModelTests {
|
||||
let viewModel = UserProfileScreenViewModel(userID: profile.id,
|
||||
isPresentedModally: false,
|
||||
userSession: UserSessionMock(.init(clientProxy: clientProxy)),
|
||||
appHooks: AppHooks(),
|
||||
analytics: AnalyticsServiceMock(.init()),
|
||||
userIndicatorController: userIndicatorController)
|
||||
let context = viewModel.context
|
||||
@@ -46,7 +45,6 @@ struct UserProfileScreenViewModelTests {
|
||||
let viewModel = UserProfileScreenViewModel(userID: profile.id,
|
||||
isPresentedModally: false,
|
||||
userSession: UserSessionMock(.init(clientProxy: clientProxy)),
|
||||
appHooks: AppHooks(),
|
||||
analytics: AnalyticsServiceMock(.init()),
|
||||
userIndicatorController: userIndicatorController)
|
||||
let context = viewModel.context
|
||||
@@ -72,7 +70,6 @@ struct UserProfileScreenViewModelTests {
|
||||
let viewModel = UserProfileScreenViewModel(userID: profile.id,
|
||||
isPresentedModally: false,
|
||||
userSession: UserSessionMock(.init(clientProxy: clientProxy)),
|
||||
appHooks: AppHooks(),
|
||||
analytics: AnalyticsServiceMock(.init()),
|
||||
userIndicatorController: userIndicatorController)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user