@@ -8230,7 +8230,7 @@ public func FfiConverterTypeTaskHandle_lower(_ value: TaskHandle) -> UnsafeMutab
8230
8230
8231
8231
public protocol TimelineProtocol : AnyObject {
8232
8232
8233
- func addListener(listener: TimelineListener) async -> RoomTimelineListenerResult
8233
+ func addListener(listener: TimelineListener) async -> TaskHandle
8234
8234
8235
8235
func createPoll(question: String, answers: [String], maxSelections: UInt8, pollKind: PollKind) async throws
8236
8236
@@ -8391,7 +8391,7 @@ open class Timeline:
8391
8391
8392
8392
8393
8393
8394
- open func addListener(listener: TimelineListener)async -> RoomTimelineListenerResult {
8394
+ open func addListener(listener: TimelineListener)async -> TaskHandle {
8395
8395
return
8396
8396
try! await uniffiRustCallAsync(
8397
8397
rustFutureFunc: {
@@ -8400,10 +8400,10 @@ open func addListener(listener: TimelineListener)async -> RoomTimelineListenerR
8400
8400
FfiConverterCallbackInterfaceTimelineListener.lower(listener)
8401
8401
)
8402
8402
},
8403
- pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer ,
8404
- completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer ,
8405
- freeFunc: ffi_matrix_sdk_ffi_rust_future_free_rust_buffer ,
8406
- liftFunc: FfiConverterTypeRoomTimelineListenerResult .lift,
8403
+ pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_pointer ,
8404
+ completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_pointer ,
8405
+ freeFunc: ffi_matrix_sdk_ffi_rust_future_free_pointer ,
8406
+ liftFunc: FfiConverterTypeTaskHandle .lift,
8407
8407
errorHandler: nil
8408
8408
8409
8409
)
@@ -13230,45 +13230,6 @@ public func FfiConverterTypeRoomSubscription_lower(_ value: RoomSubscription) ->
13230
13230
}
13231
13231
13232
13232
13233
- public struct RoomTimelineListenerResult {
13234
- public var items: [TimelineItem]
13235
- public var itemsStream: TaskHandle
13236
-
13237
- // Default memberwise initializers are never public by default, so we
13238
- // declare one manually.
13239
- public init(items: [TimelineItem], itemsStream: TaskHandle) {
13240
- self.items = items
13241
- self.itemsStream = itemsStream
13242
- }
13243
- }
13244
-
13245
-
13246
-
13247
- public struct FfiConverterTypeRoomTimelineListenerResult: FfiConverterRustBuffer {
13248
- public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> RoomTimelineListenerResult {
13249
- return
13250
- try RoomTimelineListenerResult(
13251
- items: FfiConverterSequenceTypeTimelineItem.read(from: &buf),
13252
- itemsStream: FfiConverterTypeTaskHandle.read(from: &buf)
13253
- )
13254
- }
13255
-
13256
- public static func write(_ value: RoomTimelineListenerResult, into buf: inout [UInt8]) {
13257
- FfiConverterSequenceTypeTimelineItem.write(value.items, into: &buf)
13258
- FfiConverterTypeTaskHandle.write(value.itemsStream, into: &buf)
13259
- }
13260
- }
13261
-
13262
-
13263
- public func FfiConverterTypeRoomTimelineListenerResult_lift(_ buf: RustBuffer) throws -> RoomTimelineListenerResult {
13264
- return try FfiConverterTypeRoomTimelineListenerResult.lift(buf)
13265
- }
13266
-
13267
- public func FfiConverterTypeRoomTimelineListenerResult_lower(_ value: RoomTimelineListenerResult) -> RustBuffer {
13268
- return FfiConverterTypeRoomTimelineListenerResult.lower(value)
13269
- }
13270
-
13271
-
13272
13233
public struct SearchUsersResults {
13273
13234
public var results: [UserProfile]
13274
13235
public var limited: Bool
@@ -25920,7 +25881,7 @@ private var initializationResult: InitializationResult {
25920
25881
if (uniffi_matrix_sdk_ffi_checksum_method_taskhandle_is_finished() != 29008) {
25921
25882
return InitializationResult.apiChecksumMismatch
25922
25883
}
25923
- if (uniffi_matrix_sdk_ffi_checksum_method_timeline_add_listener() != 58433 ) {
25884
+ if (uniffi_matrix_sdk_ffi_checksum_method_timeline_add_listener() != 18746 ) {
25924
25885
return InitializationResult.apiChecksumMismatch
25925
25886
}
25926
25887
if (uniffi_matrix_sdk_ffi_checksum_method_timeline_create_poll() != 37925) {
0 commit comments