mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +00:00
Move the firstRooms signposts to more relevant locations
This commit is contained in:
committed by
Stefan Ceriu
parent
8c522e7966
commit
82c3b0972d
@@ -74,8 +74,6 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationCoordinatorDelegate,
|
|||||||
navigationRootCoordinator = NavigationRootCoordinator()
|
navigationRootCoordinator = NavigationRootCoordinator()
|
||||||
|
|
||||||
Self.setupServiceLocator(navigationRootCoordinator: navigationRootCoordinator, appSettings: appSettings)
|
Self.setupServiceLocator(navigationRootCoordinator: navigationRootCoordinator, appSettings: appSettings)
|
||||||
|
|
||||||
ServiceLocator.shared.analytics.signpost.beginFirstRooms()
|
|
||||||
|
|
||||||
ServiceLocator.shared.analytics.startIfEnabled()
|
ServiceLocator.shared.analytics.startIfEnabled()
|
||||||
|
|
||||||
|
|||||||
@@ -162,11 +162,6 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// End the initial sync performance timing once the room list is about to be displayed.
|
|
||||||
if roomListMode == .rooms, self.state.roomListMode == .skeletons {
|
|
||||||
analytics.signpost.endFirstRooms()
|
|
||||||
}
|
|
||||||
|
|
||||||
self.state.roomListMode = roomListMode
|
self.state.roomListMode = roomListMode
|
||||||
|
|
||||||
MXLog.info("Received room summary provider update, setting view room list mode to \"\(self.state.roomListMode)\"")
|
MXLog.info("Received room summary provider update, setting view room list mode to \"\(self.state.roomListMode)\"")
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol {
|
|||||||
self.appSettings = appSettings
|
self.appSettings = appSettings
|
||||||
self.backgroundTaskService = backgroundTaskService
|
self.backgroundTaskService = backgroundTaskService
|
||||||
|
|
||||||
|
ServiceLocator.shared.analytics.signpost.beginFirstRooms()
|
||||||
|
|
||||||
diffsPublisher
|
diffsPublisher
|
||||||
.receive(on: serialDispatchQueue)
|
.receive(on: serialDispatchQueue)
|
||||||
.sink { [weak self] in self?.updateRoomsWithDiffs($0) }
|
.sink { [weak self] in self?.updateRoomsWithDiffs($0) }
|
||||||
@@ -154,6 +156,8 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol {
|
|||||||
detectDuplicatesInRoomList(rooms)
|
detectDuplicatesInRoomList(rooms)
|
||||||
|
|
||||||
MXLog.verbose("\(name): Finished applying \(diffs.count) diffs, new room list \(rooms.compactMap { $0.id ?? "Empty" })")
|
MXLog.verbose("\(name): Finished applying \(diffs.count) diffs, new room list \(rooms.compactMap { $0.id ?? "Empty" })")
|
||||||
|
|
||||||
|
ServiceLocator.shared.analytics.signpost.endFirstRooms()
|
||||||
}
|
}
|
||||||
|
|
||||||
private func processDiff(_ diff: RoomListEntriesUpdate, on currentItems: [RoomSummary]) -> [RoomSummary] {
|
private func processDiff(_ diff: RoomListEntriesUpdate, on currentItems: [RoomSummary]) -> [RoomSummary] {
|
||||||
|
|||||||
Reference in New Issue
Block a user