mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Move the firstRooms signpost out of the RoomSummaryProvider so that it doesn't invoked for each instance
This commit is contained in:
committed by
Stefan Ceriu
parent
569620c52f
commit
5162d0c726
@@ -399,6 +399,8 @@ 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,
|
||||
|
||||
@@ -66,8 +66,6 @@ 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) }
|
||||
|
||||
Reference in New Issue
Block a user