mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Fixes #1455 - Use the stable timeline id to match timeline items in between local echo and remote echo states
This commit is contained in:
committed by
Stefan Ceriu
parent
74e0f03356
commit
10259e9345
@@ -67,3 +67,9 @@ extension Array {
|
||||
return newItems
|
||||
}
|
||||
}
|
||||
|
||||
extension Array where Element == RoomTimelineItemProtocol {
|
||||
func firstUsingStableID(_ id: TimelineItemIdentifier) -> Element? {
|
||||
first { $0.id.timelineID == id.timelineID }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user