Skip to content

Commit c8d0dd3

Browse files
committed
Bump to v1.1.44 (matrix-rust-sdk/main 0401b995b76efc9a43c549a013146ba936fd4d5e)
1 parent 87f6686 commit c8d0dd3

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
import PackageDescription
55

6-
let checksum = "5532a3149b0f2a9c26abe5e94ba18da9fb482ba8fea18e2f5a053c9ba6a1912a"
7-
let version = "v1.1.43"
6+
let checksum = "0b550b5d18da66c74b9019eb77c4187dd650a803d82a62187f83e397b5636a5b"
7+
let version = "v1.1.44"
88
let url = "https://github.com/matrix-org/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"
99

1010
let package = Package(

Sources/MatrixRustSDK/matrix_sdk_ffi.swift

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3702,6 +3702,8 @@ public protocol RoomProtocol : AnyObject {
37023702

37033703
func subscribeToTypingNotifications(listener: TypingNotificationsListener) -> TaskHandle
37043704

3705+
func suggestedRoleForUser(userId: String) async throws -> RoomMemberRole
3706+
37053707
func timeline() async throws -> Timeline
37063708

37073709
func topic() -> String?
@@ -4504,6 +4506,23 @@ public class Room:
45044506
}
45054507
)
45064508
}
4509+
public func suggestedRoleForUser(userId: String) async throws -> RoomMemberRole {
4510+
return try await uniffiRustCallAsync(
4511+
rustFutureFunc: {
4512+
uniffi_matrix_sdk_ffi_fn_method_room_suggested_role_for_user(
4513+
self.uniffiClonePointer(),
4514+
FfiConverterString.lower(userId)
4515+
)
4516+
},
4517+
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,
4518+
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,
4519+
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,
4520+
liftFunc: FfiConverterTypeRoomMemberRole_lift,
4521+
errorHandler: FfiConverterTypeClientError.lift
4522+
)
4523+
}
4524+
4525+
45074526
public func timeline() async throws -> Timeline {
45084527
return try await uniffiRustCallAsync(
45094528
rustFutureFunc: {
@@ -10269,6 +10288,7 @@ public struct RoomInfo {
1026910288
public var activeMembersCount: UInt64
1027010289
public var invitedMembersCount: UInt64
1027110290
public var joinedMembersCount: UInt64
10291+
public var userPowerLevels: [String: Int64]
1027210292
public var highlightCount: UInt64
1027310293
public var notificationCount: UInt64
1027410294
public var userDefinedNotificationMode: RoomNotificationMode?
@@ -10314,6 +10334,7 @@ public struct RoomInfo {
1031410334
activeMembersCount: UInt64,
1031510335
invitedMembersCount: UInt64,
1031610336
joinedMembersCount: UInt64,
10337+
userPowerLevels: [String: Int64],
1031710338
highlightCount: UInt64,
1031810339
notificationCount: UInt64,
1031910340
userDefinedNotificationMode: RoomNotificationMode?,
@@ -10355,6 +10376,7 @@ public struct RoomInfo {
1035510376
self.activeMembersCount = activeMembersCount
1035610377
self.invitedMembersCount = invitedMembersCount
1035710378
self.joinedMembersCount = joinedMembersCount
10379+
self.userPowerLevels = userPowerLevels
1035810380
self.highlightCount = highlightCount
1035910381
self.notificationCount = notificationCount
1036010382
self.userDefinedNotificationMode = userDefinedNotificationMode
@@ -10390,6 +10412,7 @@ public struct FfiConverterTypeRoomInfo: FfiConverterRustBuffer {
1039010412
activeMembersCount: FfiConverterUInt64.read(from: &buf),
1039110413
invitedMembersCount: FfiConverterUInt64.read(from: &buf),
1039210414
joinedMembersCount: FfiConverterUInt64.read(from: &buf),
10415+
userPowerLevels: FfiConverterDictionaryStringInt64.read(from: &buf),
1039310416
highlightCount: FfiConverterUInt64.read(from: &buf),
1039410417
notificationCount: FfiConverterUInt64.read(from: &buf),
1039510418
userDefinedNotificationMode: FfiConverterOptionTypeRoomNotificationMode.read(from: &buf),
@@ -10420,6 +10443,7 @@ public struct FfiConverterTypeRoomInfo: FfiConverterRustBuffer {
1042010443
FfiConverterUInt64.write(value.activeMembersCount, into: &buf)
1042110444
FfiConverterUInt64.write(value.invitedMembersCount, into: &buf)
1042210445
FfiConverterUInt64.write(value.joinedMembersCount, into: &buf)
10446+
FfiConverterDictionaryStringInt64.write(value.userPowerLevels, into: &buf)
1042310447
FfiConverterUInt64.write(value.highlightCount, into: &buf)
1042410448
FfiConverterUInt64.write(value.notificationCount, into: &buf)
1042510449
FfiConverterOptionTypeRoomNotificationMode.write(value.userDefinedNotificationMode, into: &buf)
@@ -21499,6 +21523,14 @@ public func setupTracing(config: TracingConfiguration) {
2149921523
}
2150021524

2150121525

21526+
public func suggestedPowerLevelForRole(role: RoomMemberRole) -> Int64 {
21527+
return try! FfiConverterInt64.lift(
21528+
try! rustCall() {
21529+
uniffi_matrix_sdk_ffi_fn_func_suggested_power_level_for_role(
21530+
FfiConverterTypeRoomMemberRole_lower(role),$0)
21531+
}
21532+
)
21533+
}
2150221534
public func suggestedRoleForPowerLevel(powerLevel: Int64) -> RoomMemberRole {
2150321535
return try! FfiConverterTypeRoomMemberRole_lift(
2150421536
try! rustCall() {
@@ -21568,6 +21600,9 @@ private var initializationResult: InitializationResult {
2156821600
if (uniffi_matrix_sdk_ffi_checksum_func_setup_tracing() != 35378) {
2156921601
return InitializationResult.apiChecksumMismatch
2157021602
}
21603+
if (uniffi_matrix_sdk_ffi_checksum_func_suggested_power_level_for_role() != 15784) {
21604+
return InitializationResult.apiChecksumMismatch
21605+
}
2157121606
if (uniffi_matrix_sdk_ffi_checksum_func_suggested_role_for_power_level() != 21984) {
2157221607
return InitializationResult.apiChecksumMismatch
2157321608
}
@@ -22096,6 +22131,9 @@ private var initializationResult: InitializationResult {
2209622131
if (uniffi_matrix_sdk_ffi_checksum_method_room_subscribe_to_typing_notifications() != 24633) {
2209722132
return InitializationResult.apiChecksumMismatch
2209822133
}
22134+
if (uniffi_matrix_sdk_ffi_checksum_method_room_suggested_role_for_user() != 37402) {
22135+
return InitializationResult.apiChecksumMismatch
22136+
}
2209922137
if (uniffi_matrix_sdk_ffi_checksum_method_room_timeline() != 701) {
2210022138
return InitializationResult.apiChecksumMismatch
2210122139
}

0 commit comments

Comments
 (0)