Bump the SDK, handle PR comments

This commit is contained in:
Stefan Ceriu
2023-09-18 15:12:16 +03:00
committed by Stefan Ceriu
parent 48eb5c421d
commit 475e6593df
4 changed files with 34 additions and 36 deletions
@@ -334,10 +334,8 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol {
changes.append(.remove(offset: Int(index), element: summary, associatedWith: nil))
changes.append(.insert(offset: Int(index), element: summary, associatedWith: nil))
case .truncate(let length):
let entriesToKeep = rooms.prefix(Int(length))
for (index, value) in rooms.enumerated() {
if entriesToKeep.contains(value) {
if index < length {
continue
}