Add settings service in UserOtherSessionsViewModel

This commit is contained in:
Alfonso Grillo
2022-11-02 20:13:29 +01:00
parent 6eb67dbdd0
commit 2af87e91e2
4 changed files with 19 additions and 10 deletions
@@ -39,7 +39,8 @@ final class UserOtherSessionsCoordinator: Coordinator, Presentable {
let viewModel = UserOtherSessionsViewModel(sessionInfos: parameters.sessionInfos,
filter: parameters.filter,
title: parameters.title)
title: parameters.title,
settingService: RiotSettings.shared)
let view = UserOtherSessions(viewModel: viewModel.context)
userOtherSessionsViewModel = viewModel
userOtherSessionsHostingController = VectorHostingController(rootView: view)