Skip to content

Commit

Permalink
Remove spammy logs
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Sep 6, 2024
1 parent 40d45f6 commit d056550
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol {
.sink { [weak self] roomIDs in
guard let self else { return }

MXLog.debug("\(self.name): Updating subscriptions for visible rooms: \(roomIDs)")

do {
try roomListService.subscribeToRooms(roomIds: roomIDs,
settings: .init(requiredState: SlidingSyncConstants.defaultRequiredState,
Expand All @@ -217,13 +215,9 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol {
span.exit()
}

MXLog.info("\(name): Received \(diffs.count) diffs")

rooms = diffs.reduce(rooms) { currentItems, diff in
processDiff(diff, on: currentItems)
}

MXLog.info("Finished processing room list diffs")
}

private func processDiff(_ diff: RoomListEntriesUpdate, on currentItems: [RoomSummary]) -> [RoomSummary] {
Expand Down

0 comments on commit d056550

Please sign in to comment.