mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-11 13:59:13 +00:00
Fix computing the time it takes to render the first rooms
This commit is contained in:
parent
734d8bba04
commit
b5c8676d95
@ -138,6 +138,8 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
|
||||
return
|
||||
}
|
||||
|
||||
ServiceLocator.shared.analytics.signpost.beginFirstRooms()
|
||||
|
||||
// Combine together the state and the room list to correctly compute the view state if
|
||||
// data is present in the room list "cold cache"
|
||||
Publishers.CombineLatest(roomSummaryProvider.statePublisher,
|
||||
@ -162,6 +164,10 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
|
||||
return
|
||||
}
|
||||
|
||||
if roomListMode == .rooms, self.state.roomListMode == .skeletons {
|
||||
ServiceLocator.shared.analytics.signpost.endFirstRooms()
|
||||
}
|
||||
|
||||
self.state.roomListMode = roomListMode
|
||||
|
||||
MXLog.info("Received room summary provider update, setting view room list mode to \"\(self.state.roomListMode)\"")
|
||||
|
@ -399,8 +399,6 @@ class ClientProxy: ClientProxyProtocol {
|
||||
appIdentifier: "MainApp")
|
||||
.finish()
|
||||
let roomListService = syncService.roomListService()
|
||||
|
||||
ServiceLocator.shared.analytics.signpost.beginFirstRooms()
|
||||
|
||||
let eventStringBuilder = RoomEventStringBuilder(stateEventStringBuilder: RoomStateEventStringBuilder(userID: userID))
|
||||
roomSummaryProvider = RoomSummaryProvider(roomListService: roomListService,
|
||||
|
@ -166,8 +166,6 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol {
|
||||
|
||||
MXLog.verbose("\(name): Finished applying \(diffs.count) diffs, new room list \(rooms.compactMap { $0.id ?? "Empty" })")
|
||||
|
||||
ServiceLocator.shared.analytics.signpost.endFirstRooms()
|
||||
|
||||
MXLog.info("Finished processing room list diffs")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user