@@ -2849,10 +2849,10 @@ public protocol RoomProtocol {
2849
2849
func canUserTriggerRoomNotificationBlocking(userId: String) throws -> Bool
2850
2850
func cancelSend(txnId: String)
2851
2851
func canonicalAlias() -> String?
2852
- func createPoll(question: String, answers: [String], maxSelections: UInt8, pollKind: PollKind, txnId: String? ) throws
2852
+ func createPoll(question: String, answers: [String], maxSelections: UInt8, pollKind: PollKind) throws
2853
2853
func displayName() throws -> String
2854
- func edit(newMsg : RoomMessageEventContentWithoutRelation, originalEventId: String, txnId: String? ) throws
2855
- func endPoll(pollStartId: String, text: String, txnId: String? ) throws
2854
+ func edit(newContent : RoomMessageEventContentWithoutRelation, editItem: EventTimelineItem ) throws
2855
+ func endPoll(pollStartId: String, text: String) throws
2856
2856
func fetchDetailsForEvent(eventId: String) throws
2857
2857
func fetchMembers() async throws
2858
2858
func fetchMembersBlocking() throws
@@ -2881,23 +2881,23 @@ public protocol RoomProtocol {
2881
2881
func name() -> String?
2882
2882
func ownUserId() -> String
2883
2883
func paginateBackwards(opts: PaginationOptions) throws
2884
- func redact(eventId: String, reason: String?, txnId: String? ) throws
2884
+ func redact(eventId: String, reason: String?) throws
2885
2885
func removeAvatar() throws
2886
2886
func removeTimeline()
2887
2887
func reportContent(eventId: String, score: Int32?, reason: String?) throws
2888
2888
func retryDecryption(sessionIds: [String])
2889
2889
func retrySend(txnId: String)
2890
2890
func roomInfo() async throws -> RoomInfo
2891
2891
func roomInfoBlocking() throws -> RoomInfo
2892
- func send(msg: RoomMessageEventContentWithoutRelation, txnId: String? )
2892
+ func send(msg: RoomMessageEventContentWithoutRelation)
2893
2893
func sendAudio(url: String, audioInfo: AudioInfo, progressWatcher: ProgressWatcher?) -> SendAttachmentJoinHandle
2894
2894
func sendFile(url: String, fileInfo: FileInfo, progressWatcher: ProgressWatcher?) -> SendAttachmentJoinHandle
2895
2895
func sendImage(url: String, thumbnailUrl: String, imageInfo: ImageInfo, progressWatcher: ProgressWatcher?) -> SendAttachmentJoinHandle
2896
- func sendLocation(body: String, geoUri: String, description: String?, zoomLevel: UInt8?, assetType: AssetType?, txnId: String? )
2897
- func sendPollResponse(pollStartId: String, answers: [String], txnId: String? ) throws
2896
+ func sendLocation(body: String, geoUri: String, description: String?, zoomLevel: UInt8?, assetType: AssetType?)
2897
+ func sendPollResponse(pollStartId: String, answers: [String]) throws
2898
2898
func sendReadMarker(fullyReadEventId: String, readReceiptEventId: String?) throws
2899
2899
func sendReadReceipt(eventId: String) throws
2900
- func sendReply(msg: RoomMessageEventContentWithoutRelation, replyItem: EventTimelineItem, txnId: String? ) throws
2900
+ func sendReply(msg: RoomMessageEventContentWithoutRelation, replyItem: EventTimelineItem) throws
2901
2901
func sendVideo(url: String, thumbnailUrl: String, videoInfo: VideoInfo, progressWatcher: ProgressWatcher?) -> SendAttachmentJoinHandle
2902
2902
func setName(name: String) throws
2903
2903
func setTopic(topic: String) throws
@@ -3288,15 +3288,14 @@ public class Room: RoomProtocol {
3288
3288
)
3289
3289
}
3290
3290
3291
- public func createPoll(question: String, answers: [String], maxSelections: UInt8, pollKind: PollKind, txnId: String? ) throws {
3291
+ public func createPoll(question: String, answers: [String], maxSelections: UInt8, pollKind: PollKind) throws {
3292
3292
try
3293
3293
rustCallWithError(FfiConverterTypeClientError.lift) {
3294
3294
uniffi_matrix_sdk_ffi_fn_method_room_create_poll(self.pointer,
3295
3295
FfiConverterString.lower(question),
3296
3296
FfiConverterSequenceString.lower(answers),
3297
3297
FfiConverterUInt8.lower(maxSelections),
3298
- FfiConverterTypePollKind.lower(pollKind),
3299
- FfiConverterOptionString.lower(txnId),$0
3298
+ FfiConverterTypePollKind.lower(pollKind),$0
3300
3299
)
3301
3300
}
3302
3301
}
@@ -3311,24 +3310,22 @@ public class Room: RoomProtocol {
3311
3310
)
3312
3311
}
3313
3312
3314
- public func edit(newMsg : RoomMessageEventContentWithoutRelation, originalEventId: String, txnId: String? ) throws {
3313
+ public func edit(newContent : RoomMessageEventContentWithoutRelation, editItem: EventTimelineItem ) throws {
3315
3314
try
3316
3315
rustCallWithError(FfiConverterTypeClientError.lift) {
3317
3316
uniffi_matrix_sdk_ffi_fn_method_room_edit(self.pointer,
3318
- FfiConverterTypeRoomMessageEventContentWithoutRelation.lower(newMsg),
3319
- FfiConverterString.lower(originalEventId),
3320
- FfiConverterOptionString.lower(txnId),$0
3317
+ FfiConverterTypeRoomMessageEventContentWithoutRelation.lower(newContent),
3318
+ FfiConverterTypeEventTimelineItem.lower(editItem),$0
3321
3319
)
3322
3320
}
3323
3321
}
3324
3322
3325
- public func endPoll(pollStartId: String, text: String, txnId: String? ) throws {
3323
+ public func endPoll(pollStartId: String, text: String) throws {
3326
3324
try
3327
3325
rustCallWithError(FfiConverterTypeClientError.lift) {
3328
3326
uniffi_matrix_sdk_ffi_fn_method_room_end_poll(self.pointer,
3329
3327
FfiConverterString.lower(pollStartId),
3330
- FfiConverterString.lower(text),
3331
- FfiConverterOptionString.lower(txnId),$0
3328
+ FfiConverterString.lower(text),$0
3332
3329
)
3333
3330
}
3334
3331
}
@@ -3662,13 +3659,12 @@ public class Room: RoomProtocol {
3662
3659
}
3663
3660
}
3664
3661
3665
- public func redact(eventId: String, reason: String?, txnId: String? ) throws {
3662
+ public func redact(eventId: String, reason: String?) throws {
3666
3663
try
3667
3664
rustCallWithError(FfiConverterTypeClientError.lift) {
3668
3665
uniffi_matrix_sdk_ffi_fn_method_room_redact(self.pointer,
3669
3666
FfiConverterString.lower(eventId),
3670
- FfiConverterOptionString.lower(reason),
3671
- FfiConverterOptionString.lower(txnId),$0
3667
+ FfiConverterOptionString.lower(reason),$0
3672
3668
)
3673
3669
}
3674
3670
}
@@ -3755,13 +3751,12 @@ public class Room: RoomProtocol {
3755
3751
)
3756
3752
}
3757
3753
3758
- public func send(msg: RoomMessageEventContentWithoutRelation, txnId: String? ) {
3754
+ public func send(msg: RoomMessageEventContentWithoutRelation) {
3759
3755
try!
3760
3756
rustCall() {
3761
3757
3762
3758
uniffi_matrix_sdk_ffi_fn_method_room_send(self.pointer,
3763
- FfiConverterTypeRoomMessageEventContentWithoutRelation.lower(msg),
3764
- FfiConverterOptionString.lower(txnId),$0
3759
+ FfiConverterTypeRoomMessageEventContentWithoutRelation.lower(msg),$0
3765
3760
)
3766
3761
}
3767
3762
}
@@ -3809,7 +3804,7 @@ public class Room: RoomProtocol {
3809
3804
)
3810
3805
}
3811
3806
3812
- public func sendLocation(body: String, geoUri: String, description: String?, zoomLevel: UInt8?, assetType: AssetType?, txnId: String? ) {
3807
+ public func sendLocation(body: String, geoUri: String, description: String?, zoomLevel: UInt8?, assetType: AssetType?) {
3813
3808
try!
3814
3809
rustCall() {
3815
3810
@@ -3818,19 +3813,17 @@ public class Room: RoomProtocol {
3818
3813
FfiConverterString.lower(geoUri),
3819
3814
FfiConverterOptionString.lower(description),
3820
3815
FfiConverterOptionUInt8.lower(zoomLevel),
3821
- FfiConverterOptionTypeAssetType.lower(assetType),
3822
- FfiConverterOptionString.lower(txnId),$0
3816
+ FfiConverterOptionTypeAssetType.lower(assetType),$0
3823
3817
)
3824
3818
}
3825
3819
}
3826
3820
3827
- public func sendPollResponse(pollStartId: String, answers: [String], txnId: String? ) throws {
3821
+ public func sendPollResponse(pollStartId: String, answers: [String]) throws {
3828
3822
try
3829
3823
rustCallWithError(FfiConverterTypeClientError.lift) {
3830
3824
uniffi_matrix_sdk_ffi_fn_method_room_send_poll_response(self.pointer,
3831
3825
FfiConverterString.lower(pollStartId),
3832
- FfiConverterSequenceString.lower(answers),
3833
- FfiConverterOptionString.lower(txnId),$0
3826
+ FfiConverterSequenceString.lower(answers),$0
3834
3827
)
3835
3828
}
3836
3829
}
@@ -3854,13 +3847,12 @@ public class Room: RoomProtocol {
3854
3847
}
3855
3848
}
3856
3849
3857
- public func sendReply(msg: RoomMessageEventContentWithoutRelation, replyItem: EventTimelineItem, txnId: String? ) throws {
3850
+ public func sendReply(msg: RoomMessageEventContentWithoutRelation, replyItem: EventTimelineItem) throws {
3858
3851
try
3859
3852
rustCallWithError(FfiConverterTypeClientError.lift) {
3860
3853
uniffi_matrix_sdk_ffi_fn_method_room_send_reply(self.pointer,
3861
3854
FfiConverterTypeRoomMessageEventContentWithoutRelation.lower(msg),
3862
- FfiConverterTypeEventTimelineItem.lower(replyItem),
3863
- FfiConverterOptionString.lower(txnId),$0
3855
+ FfiConverterTypeEventTimelineItem.lower(replyItem),$0
3864
3856
)
3865
3857
}
3866
3858
}
@@ -10675,6 +10667,7 @@ public enum MessageLikeEventContent {
10675
10667
case keyVerificationKey
10676
10668
case keyVerificationMac
10677
10669
case keyVerificationDone
10670
+ case poll(question: String)
10678
10671
case reactionContent(relatedEventId: String)
10679
10672
case roomEncrypted
10680
10673
case roomMessage(messageType: MessageType, inReplyToEventId: String?)
@@ -10711,20 +10704,24 @@ public struct FfiConverterTypeMessageLikeEventContent: FfiConverterRustBuffer {
10711
10704
10712
10705
case 11: return .keyVerificationDone
10713
10706
10714
- case 12: return .reactionContent(
10707
+ case 12: return .poll(
10708
+ question: try FfiConverterString.read(from: &buf)
10709
+ )
10710
+
10711
+ case 13: return .reactionContent(
10715
10712
relatedEventId: try FfiConverterString.read(from: &buf)
10716
10713
)
10717
10714
10718
- case 13 : return .roomEncrypted
10715
+ case 14 : return .roomEncrypted
10719
10716
10720
- case 14 : return .roomMessage(
10717
+ case 15 : return .roomMessage(
10721
10718
messageType: try FfiConverterTypeMessageType.read(from: &buf),
10722
10719
inReplyToEventId: try FfiConverterOptionString.read(from: &buf)
10723
10720
)
10724
10721
10725
- case 15 : return .roomRedaction
10722
+ case 16 : return .roomRedaction
10726
10723
10727
- case 16 : return .sticker
10724
+ case 17 : return .sticker
10728
10725
10729
10726
default: throw UniffiInternalError.unexpectedEnumCase
10730
10727
}
@@ -10778,27 +10775,32 @@ public struct FfiConverterTypeMessageLikeEventContent: FfiConverterRustBuffer {
10778
10775
writeInt(&buf, Int32(11))
10779
10776
10780
10777
10781
- case let .reactionContent(relatedEventId ):
10778
+ case let .poll(question ):
10782
10779
writeInt(&buf, Int32(12))
10780
+ FfiConverterString.write(question, into: &buf)
10781
+
10782
+
10783
+ case let .reactionContent(relatedEventId):
10784
+ writeInt(&buf, Int32(13))
10783
10785
FfiConverterString.write(relatedEventId, into: &buf)
10784
10786
10785
10787
10786
10788
case .roomEncrypted:
10787
- writeInt(&buf, Int32(13 ))
10789
+ writeInt(&buf, Int32(14 ))
10788
10790
10789
10791
10790
10792
case let .roomMessage(messageType,inReplyToEventId):
10791
- writeInt(&buf, Int32(14 ))
10793
+ writeInt(&buf, Int32(15 ))
10792
10794
FfiConverterTypeMessageType.write(messageType, into: &buf)
10793
10795
FfiConverterOptionString.write(inReplyToEventId, into: &buf)
10794
10796
10795
10797
10796
10798
case .roomRedaction:
10797
- writeInt(&buf, Int32(15 ))
10799
+ writeInt(&buf, Int32(16 ))
10798
10800
10799
10801
10800
10802
case .sticker:
10801
- writeInt(&buf, Int32(16 ))
10803
+ writeInt(&buf, Int32(17 ))
10802
10804
10803
10805
}
10804
10806
}
@@ -18839,16 +18841,16 @@ private var initializationResult: InitializationResult {
18839
18841
if (uniffi_matrix_sdk_ffi_checksum_method_room_canonical_alias() != 15084) {
18840
18842
return InitializationResult.apiChecksumMismatch
18841
18843
}
18842
- if (uniffi_matrix_sdk_ffi_checksum_method_room_create_poll() != 5532 ) {
18844
+ if (uniffi_matrix_sdk_ffi_checksum_method_room_create_poll() != 62592 ) {
18843
18845
return InitializationResult.apiChecksumMismatch
18844
18846
}
18845
18847
if (uniffi_matrix_sdk_ffi_checksum_method_room_display_name() != 38216) {
18846
18848
return InitializationResult.apiChecksumMismatch
18847
18849
}
18848
- if (uniffi_matrix_sdk_ffi_checksum_method_room_edit() != 35232 ) {
18850
+ if (uniffi_matrix_sdk_ffi_checksum_method_room_edit() != 38490 ) {
18849
18851
return InitializationResult.apiChecksumMismatch
18850
18852
}
18851
- if (uniffi_matrix_sdk_ffi_checksum_method_room_end_poll() != 8937 ) {
18853
+ if (uniffi_matrix_sdk_ffi_checksum_method_room_end_poll() != 42646 ) {
18852
18854
return InitializationResult.apiChecksumMismatch
18853
18855
}
18854
18856
if (uniffi_matrix_sdk_ffi_checksum_method_room_fetch_details_for_event() != 23233) {
@@ -18935,7 +18937,7 @@ private var initializationResult: InitializationResult {
18935
18937
if (uniffi_matrix_sdk_ffi_checksum_method_room_paginate_backwards() != 28035) {
18936
18938
return InitializationResult.apiChecksumMismatch
18937
18939
}
18938
- if (uniffi_matrix_sdk_ffi_checksum_method_room_redact() != 61747 ) {
18940
+ if (uniffi_matrix_sdk_ffi_checksum_method_room_redact() != 12809 ) {
18939
18941
return InitializationResult.apiChecksumMismatch
18940
18942
}
18941
18943
if (uniffi_matrix_sdk_ffi_checksum_method_room_remove_avatar() != 24698) {
@@ -18959,7 +18961,7 @@ private var initializationResult: InitializationResult {
18959
18961
if (uniffi_matrix_sdk_ffi_checksum_method_room_room_info_blocking() != 23031) {
18960
18962
return InitializationResult.apiChecksumMismatch
18961
18963
}
18962
- if (uniffi_matrix_sdk_ffi_checksum_method_room_send() != 39033 ) {
18964
+ if (uniffi_matrix_sdk_ffi_checksum_method_room_send() != 974 ) {
18963
18965
return InitializationResult.apiChecksumMismatch
18964
18966
}
18965
18967
if (uniffi_matrix_sdk_ffi_checksum_method_room_send_audio() != 19498) {
@@ -18971,10 +18973,10 @@ private var initializationResult: InitializationResult {
18971
18973
if (uniffi_matrix_sdk_ffi_checksum_method_room_send_image() != 56510) {
18972
18974
return InitializationResult.apiChecksumMismatch
18973
18975
}
18974
- if (uniffi_matrix_sdk_ffi_checksum_method_room_send_location() != 43614 ) {
18976
+ if (uniffi_matrix_sdk_ffi_checksum_method_room_send_location() != 25452 ) {
18975
18977
return InitializationResult.apiChecksumMismatch
18976
18978
}
18977
- if (uniffi_matrix_sdk_ffi_checksum_method_room_send_poll_response() != 1386 ) {
18979
+ if (uniffi_matrix_sdk_ffi_checksum_method_room_send_poll_response() != 21289 ) {
18978
18980
return InitializationResult.apiChecksumMismatch
18979
18981
}
18980
18982
if (uniffi_matrix_sdk_ffi_checksum_method_room_send_read_marker() != 53306) {
@@ -18983,7 +18985,7 @@ private var initializationResult: InitializationResult {
18983
18985
if (uniffi_matrix_sdk_ffi_checksum_method_room_send_read_receipt() != 6919) {
18984
18986
return InitializationResult.apiChecksumMismatch
18985
18987
}
18986
- if (uniffi_matrix_sdk_ffi_checksum_method_room_send_reply() != 45489 ) {
18988
+ if (uniffi_matrix_sdk_ffi_checksum_method_room_send_reply() != 12091 ) {
18987
18989
return InitializationResult.apiChecksumMismatch
18988
18990
}
18989
18991
if (uniffi_matrix_sdk_ffi_checksum_method_room_send_video() != 38775) {
0 commit comments