Move the firstRooms signposts to more relevant locations

This commit is contained in:
Stefan Ceriu
2023-08-25 11:35:09 +03:00
committed by Stefan Ceriu
parent 8c522e7966
commit 82c3b0972d
3 changed files with 4 additions and 7 deletions
@@ -66,6 +66,8 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol {
self.appSettings = appSettings
self.backgroundTaskService = backgroundTaskService
ServiceLocator.shared.analytics.signpost.beginFirstRooms()
diffsPublisher
.receive(on: serialDispatchQueue)
.sink { [weak self] in self?.updateRoomsWithDiffs($0) }
@@ -154,6 +156,8 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol {
detectDuplicatesInRoomList(rooms)
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] {