mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Bump the SDK, handle PR comments
This commit is contained in:
committed by
Stefan Ceriu
parent
48eb5c421d
commit
475e6593df
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user