@@ -5607,7 +5607,7 @@ public protocol RoomProtocol : AnyObject {
5607
5607
*/
5608
5608
func stopLiveLocationShare() async throws
5609
5609
5610
- func subscribeToIdentityStatusChanges(listener: IdentityStatusChangeListener) -> TaskHandle
5610
+ func subscribeToIdentityStatusChanges(listener: IdentityStatusChangeListener) async throws -> TaskHandle
5611
5611
5612
5612
/**
5613
5613
* Subscribes to requests to join this room (knock member events), using a
@@ -7078,12 +7078,21 @@ open func stopLiveLocationShare()async throws {
7078
7078
)
7079
7079
}
7080
7080
7081
- open func subscribeToIdentityStatusChanges(listener: IdentityStatusChangeListener) -> TaskHandle {
7082
- return try! FfiConverterTypeTaskHandle.lift(try! rustCall() {
7083
- uniffi_matrix_sdk_ffi_fn_method_room_subscribe_to_identity_status_changes(self.uniffiClonePointer(),
7084
- FfiConverterCallbackInterfaceIdentityStatusChangeListener.lower(listener),$0
7085
- )
7086
- })
7081
+ open func subscribeToIdentityStatusChanges(listener: IdentityStatusChangeListener)async throws -> TaskHandle {
7082
+ return
7083
+ try await uniffiRustCallAsync(
7084
+ rustFutureFunc: {
7085
+ uniffi_matrix_sdk_ffi_fn_method_room_subscribe_to_identity_status_changes(
7086
+ self.uniffiClonePointer(),
7087
+ FfiConverterCallbackInterfaceIdentityStatusChangeListener.lower(listener)
7088
+ )
7089
+ },
7090
+ pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_pointer,
7091
+ completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_pointer,
7092
+ freeFunc: ffi_matrix_sdk_ffi_rust_future_free_pointer,
7093
+ liftFunc: FfiConverterTypeTaskHandle.lift,
7094
+ errorHandler: FfiConverterTypeClientError.lift
7095
+ )
7087
7096
}
7088
7097
7089
7098
/**
@@ -10507,7 +10516,7 @@ public protocol TimelineProtocol : AnyObject {
10507
10516
*/
10508
10517
func edit(eventOrTransactionId: EventOrTransactionId, newContent: EditedContent) async throws
10509
10518
10510
- func endPoll(pollStartEventId: String, text: String) throws
10519
+ func endPoll(pollStartEventId: String, text: String) async throws
10511
10520
10512
10521
func fetchDetailsForEvent(eventId: String) async throws
10513
10522
@@ -10602,8 +10611,31 @@ public protocol TimelineProtocol : AnyObject {
10602
10611
10603
10612
func sendReadReceipt(receiptType: ReceiptType, eventId: String) async throws
10604
10613
10614
+ /**
10615
+ * Send a reply.
10616
+ *
10617
+ * If the replied to event has a thread relation, it is forwarded on the
10618
+ * reply so that clients that support threads can render the reply
10619
+ * inside the thread.
10620
+ */
10605
10621
func sendReply(msg: RoomMessageEventContentWithoutRelation, eventId: String) async throws
10606
10622
10623
+ /**
10624
+ * Send a message on a thread.
10625
+ *
10626
+ * If the replied to event does not have a thread relation, it becomes the
10627
+ * root of a new thread.
10628
+ *
10629
+ * # Arguments
10630
+ *
10631
+ * * `msg` - Message content to send
10632
+ *
10633
+ * * `event_id` - ID of the event to reply to
10634
+ *
10635
+ * * `is_reply` - Whether the message is a reply on a thread
10636
+ */
10637
+ func sendThreadReply(msg: RoomMessageEventContentWithoutRelation, eventId: String, isReply: Bool) async throws
10638
+
10607
10639
func sendVideo(params: UploadParameters, thumbnailPath: String?, videoInfo: VideoInfo, progressWatcher: ProgressWatcher?) throws -> SendAttachmentJoinHandle
10608
10640
10609
10641
func sendVoiceMessage(params: UploadParameters, audioInfo: AudioInfo, waveform: [UInt16], progressWatcher: ProgressWatcher?) throws -> SendAttachmentJoinHandle
@@ -10747,12 +10779,21 @@ open func edit(eventOrTransactionId: EventOrTransactionId, newContent: EditedCon
10747
10779
)
10748
10780
}
10749
10781
10750
- open func endPoll(pollStartEventId: String, text: String)throws {try rustCallWithError(FfiConverterTypeClientError.lift) {
10751
- uniffi_matrix_sdk_ffi_fn_method_timeline_end_poll(self.uniffiClonePointer(),
10752
- FfiConverterString.lower(pollStartEventId),
10753
- FfiConverterString.lower(text),$0
10754
- )
10755
- }
10782
+ open func endPoll(pollStartEventId: String, text: String)async throws {
10783
+ return
10784
+ try await uniffiRustCallAsync(
10785
+ rustFutureFunc: {
10786
+ uniffi_matrix_sdk_ffi_fn_method_timeline_end_poll(
10787
+ self.uniffiClonePointer(),
10788
+ FfiConverterString.lower(pollStartEventId),FfiConverterString.lower(text)
10789
+ )
10790
+ },
10791
+ pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_void,
10792
+ completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_void,
10793
+ freeFunc: ffi_matrix_sdk_ffi_rust_future_free_void,
10794
+ liftFunc: { $0 },
10795
+ errorHandler: FfiConverterTypeClientError.lift
10796
+ )
10756
10797
}
10757
10798
10758
10799
open func fetchDetailsForEvent(eventId: String)async throws {
@@ -11075,6 +11116,13 @@ open func sendReadReceipt(receiptType: ReceiptType, eventId: String)async throws
11075
11116
)
11076
11117
}
11077
11118
11119
+ /**
11120
+ * Send a reply.
11121
+ *
11122
+ * If the replied to event has a thread relation, it is forwarded on the
11123
+ * reply so that clients that support threads can render the reply
11124
+ * inside the thread.
11125
+ */
11078
11126
open func sendReply(msg: RoomMessageEventContentWithoutRelation, eventId: String)async throws {
11079
11127
return
11080
11128
try await uniffiRustCallAsync(
@@ -11092,6 +11140,37 @@ open func sendReply(msg: RoomMessageEventContentWithoutRelation, eventId: String
11092
11140
)
11093
11141
}
11094
11142
11143
+ /**
11144
+ * Send a message on a thread.
11145
+ *
11146
+ * If the replied to event does not have a thread relation, it becomes the
11147
+ * root of a new thread.
11148
+ *
11149
+ * # Arguments
11150
+ *
11151
+ * * `msg` - Message content to send
11152
+ *
11153
+ * * `event_id` - ID of the event to reply to
11154
+ *
11155
+ * * `is_reply` - Whether the message is a reply on a thread
11156
+ */
11157
+ open func sendThreadReply(msg: RoomMessageEventContentWithoutRelation, eventId: String, isReply: Bool)async throws {
11158
+ return
11159
+ try await uniffiRustCallAsync(
11160
+ rustFutureFunc: {
11161
+ uniffi_matrix_sdk_ffi_fn_method_timeline_send_thread_reply(
11162
+ self.uniffiClonePointer(),
11163
+ FfiConverterTypeRoomMessageEventContentWithoutRelation.lower(msg),FfiConverterString.lower(eventId),FfiConverterBool.lower(isReply)
11164
+ )
11165
+ },
11166
+ pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_void,
11167
+ completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_void,
11168
+ freeFunc: ffi_matrix_sdk_ffi_rust_future_free_void,
11169
+ liftFunc: { $0 },
11170
+ errorHandler: FfiConverterTypeClientError.lift
11171
+ )
11172
+ }
11173
+
11095
11174
open func sendVideo(params: UploadParameters, thumbnailPath: String?, videoInfo: VideoInfo, progressWatcher: ProgressWatcher?)throws -> SendAttachmentJoinHandle {
11096
11175
return try FfiConverterTypeSendAttachmentJoinHandle.lift(try rustCallWithError(FfiConverterTypeRoomError.lift) {
11097
11176
uniffi_matrix_sdk_ffi_fn_method_timeline_send_video(self.uniffiClonePointer(),
@@ -27813,6 +27892,10 @@ public enum VirtualTimelineItem {
27813
27892
* The user's own read marker.
27814
27893
*/
27815
27894
case readMarker
27895
+ /**
27896
+ * The timeline start, that is, the *oldest* event in time for that room.
27897
+ */
27898
+ case timelineStart
27816
27899
}
27817
27900
27818
27901
@@ -27828,6 +27911,8 @@ public struct FfiConverterTypeVirtualTimelineItem: FfiConverterRustBuffer {
27828
27911
27829
27912
case 2: return .readMarker
27830
27913
27914
+ case 3: return .timelineStart
27915
+
27831
27916
default: throw UniffiInternalError.unexpectedEnumCase
27832
27917
}
27833
27918
}
@@ -27844,6 +27929,10 @@ public struct FfiConverterTypeVirtualTimelineItem: FfiConverterRustBuffer {
27844
27929
case .readMarker:
27845
27930
writeInt(&buf, Int32(2))
27846
27931
27932
+
27933
+ case .timelineStart:
27934
+ writeInt(&buf, Int32(3))
27935
+
27847
27936
}
27848
27937
}
27849
27938
}
@@ -33862,7 +33951,7 @@ private var initializationResult: InitializationResult = {
33862
33951
if (uniffi_matrix_sdk_ffi_checksum_method_room_stop_live_location_share() != 19983) {
33863
33952
return InitializationResult.apiChecksumMismatch
33864
33953
}
33865
- if (uniffi_matrix_sdk_ffi_checksum_method_room_subscribe_to_identity_status_changes() != 14290 ) {
33954
+ if (uniffi_matrix_sdk_ffi_checksum_method_room_subscribe_to_identity_status_changes() != 8526 ) {
33866
33955
return InitializationResult.apiChecksumMismatch
33867
33956
}
33868
33957
if (uniffi_matrix_sdk_ffi_checksum_method_room_subscribe_to_knock_requests() != 30649) {
@@ -34132,7 +34221,7 @@ private var initializationResult: InitializationResult = {
34132
34221
if (uniffi_matrix_sdk_ffi_checksum_method_timeline_edit() != 42189) {
34133
34222
return InitializationResult.apiChecksumMismatch
34134
34223
}
34135
- if (uniffi_matrix_sdk_ffi_checksum_method_timeline_end_poll() != 61329 ) {
34224
+ if (uniffi_matrix_sdk_ffi_checksum_method_timeline_end_poll() != 32659 ) {
34136
34225
return InitializationResult.apiChecksumMismatch
34137
34226
}
34138
34227
if (uniffi_matrix_sdk_ffi_checksum_method_timeline_fetch_details_for_event() != 54068) {
@@ -34186,7 +34275,10 @@ private var initializationResult: InitializationResult = {
34186
34275
if (uniffi_matrix_sdk_ffi_checksum_method_timeline_send_read_receipt() != 37532) {
34187
34276
return InitializationResult.apiChecksumMismatch
34188
34277
}
34189
- if (uniffi_matrix_sdk_ffi_checksum_method_timeline_send_reply() != 64747) {
34278
+ if (uniffi_matrix_sdk_ffi_checksum_method_timeline_send_reply() != 11149) {
34279
+ return InitializationResult.apiChecksumMismatch
34280
+ }
34281
+ if (uniffi_matrix_sdk_ffi_checksum_method_timeline_send_thread_reply() != 62758) {
34190
34282
return InitializationResult.apiChecksumMismatch
34191
34283
}
34192
34284
if (uniffi_matrix_sdk_ffi_checksum_method_timeline_send_video() != 1445) {
0 commit comments