mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 04:18:31 +00:00
Adopt various rust side Timeline API additions (#3423)
* Adopt new reaction toggling API introduced in matrix-org/matrix-rust-sdk/pull/4127 * Adopt the changes introduced in matrix-org/matrix-rust-sdk/pull/4111: use the new `TimelineUniqueId` type instead of `String` for unique timeline identifiers. * Bump the RustSDK to v1.0.58. * Fix unit tests
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
//
|
||||
|
||||
import Combine
|
||||
import MatrixRustSDK
|
||||
import OrderedCollections
|
||||
import SwiftUI
|
||||
|
||||
@@ -202,9 +203,9 @@ struct TimelineState {
|
||||
// These can be removed when we have full swiftUI and moved as @State values in the view
|
||||
var scrollToBottomPublisher = PassthroughSubject<Void, Never>()
|
||||
|
||||
var itemsDictionary = OrderedDictionary<String, RoomTimelineItemViewState>()
|
||||
var itemsDictionary = OrderedDictionary<TimelineUniqueId, RoomTimelineItemViewState>()
|
||||
|
||||
var uniqueIDs: [String] {
|
||||
var uniqueIDs: [TimelineUniqueId] {
|
||||
itemsDictionary.keys.elements
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user