Skip to content

Commit e7bacee

Browse files
committed
Bump to v1.1.26 (matrix-rust-sdk b0aa0ec5de700afa7adf63928c2efa42d0d917a9)
1 parent 45e7564 commit e7bacee

File tree

2 files changed

+42
-4
lines changed

2 files changed

+42
-4
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 = "fd649958a45d2d401cda6b1e6241ceeefeb82ef9b0cbca05abc2c2152bc5ed82"
7-
let version = "v1.1.25"
6+
let checksum = "0765bcbbdfe5461bafc2da86ddea3067a2b5811e658eb076c8ccbcae20565778"
7+
let version = "v1.1.26"
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: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2586,6 +2586,7 @@ public func FfiConverterTypeOidcAuthenticationData_lower(_ value: OidcAuthentica
25862586

25872587
public protocol RoomProtocol {
25882588
func activeMembersCount() -> UInt64
2589+
func activeRoomCallParticipants() -> [String]
25892590
func addTimelineListener(listener: TimelineListener) async -> RoomTimelineListenerResult
25902591
func alternativeAliases() -> [String]
25912592
func avatarUrl() -> String?
@@ -2606,6 +2607,7 @@ public protocol RoomProtocol {
26062607
func fetchMembers() async throws
26072608
func getEventTimelineItemByEventId(eventId: String) throws -> EventTimelineItem
26082609
func getTimelineEventContentByEventId(eventId: String) throws -> RoomMessageEventContentWithoutRelation
2610+
func hasActiveRoomCall() -> Bool
26092611
func id() -> String
26102612
func ignoreUser(userId: String) throws
26112613
func inviteUserById(userId: String) throws
@@ -2684,6 +2686,17 @@ public class Room: RoomProtocol {
26842686
)
26852687
}
26862688

2689+
public func activeRoomCallParticipants() -> [String] {
2690+
return try! FfiConverterSequenceString.lift(
2691+
try!
2692+
rustCall() {
2693+
2694+
uniffi_matrix_sdk_ffi_fn_method_room_active_room_call_participants(self.pointer, $0
2695+
)
2696+
}
2697+
)
2698+
}
2699+
26872700
public func addTimelineListener(listener: TimelineListener) async -> RoomTimelineListenerResult {
26882701
return try! await uniffiRustCallAsync(
26892702
rustFutureFunc: {
@@ -2964,6 +2977,17 @@ public class Room: RoomProtocol {
29642977
)
29652978
}
29662979

2980+
public func hasActiveRoomCall() -> Bool {
2981+
return try! FfiConverterBool.lift(
2982+
try!
2983+
rustCall() {
2984+
2985+
uniffi_matrix_sdk_ffi_fn_method_room_has_active_room_call(self.pointer, $0
2986+
)
2987+
}
2988+
)
2989+
}
2990+
29672991
public func id() -> String {
29682992
return try! FfiConverterString.lift(
29692993
try!
@@ -7805,10 +7829,12 @@ public struct RoomInfo {
78057829
public var highlightCount: UInt64
78067830
public var notificationCount: UInt64
78077831
public var userDefinedNotificationMode: RoomNotificationMode?
7832+
public var hasRoomCall: Bool
7833+
public var activeRoomCallParticipants: [String]
78087834

78097835
// Default memberwise initializers are never public by default, so we
78107836
// declare one manually.
7811-
public init(id: String, name: String?, topic: String?, avatarUrl: String?, isDirect: Bool, isPublic: Bool, isSpace: Bool, isTombstoned: Bool, canonicalAlias: String?, alternativeAliases: [String], membership: Membership, latestEvent: EventTimelineItem?, inviter: RoomMember?, activeMembersCount: UInt64, invitedMembersCount: UInt64, joinedMembersCount: UInt64, highlightCount: UInt64, notificationCount: UInt64, userDefinedNotificationMode: RoomNotificationMode?) {
7837+
public init(id: String, name: String?, topic: String?, avatarUrl: String?, isDirect: Bool, isPublic: Bool, isSpace: Bool, isTombstoned: Bool, canonicalAlias: String?, alternativeAliases: [String], membership: Membership, latestEvent: EventTimelineItem?, inviter: RoomMember?, activeMembersCount: UInt64, invitedMembersCount: UInt64, joinedMembersCount: UInt64, highlightCount: UInt64, notificationCount: UInt64, userDefinedNotificationMode: RoomNotificationMode?, hasRoomCall: Bool, activeRoomCallParticipants: [String]) {
78127838
self.id = id
78137839
self.name = name
78147840
self.topic = topic
@@ -7828,6 +7854,8 @@ public struct RoomInfo {
78287854
self.highlightCount = highlightCount
78297855
self.notificationCount = notificationCount
78307856
self.userDefinedNotificationMode = userDefinedNotificationMode
7857+
self.hasRoomCall = hasRoomCall
7858+
self.activeRoomCallParticipants = activeRoomCallParticipants
78317859
}
78327860
}
78337861

@@ -7854,7 +7882,9 @@ public struct FfiConverterTypeRoomInfo: FfiConverterRustBuffer {
78547882
joinedMembersCount: FfiConverterUInt64.read(from: &buf),
78557883
highlightCount: FfiConverterUInt64.read(from: &buf),
78567884
notificationCount: FfiConverterUInt64.read(from: &buf),
7857-
userDefinedNotificationMode: FfiConverterOptionTypeRoomNotificationMode.read(from: &buf)
7885+
userDefinedNotificationMode: FfiConverterOptionTypeRoomNotificationMode.read(from: &buf),
7886+
hasRoomCall: FfiConverterBool.read(from: &buf),
7887+
activeRoomCallParticipants: FfiConverterSequenceString.read(from: &buf)
78587888
)
78597889
}
78607890

@@ -7878,6 +7908,8 @@ public struct FfiConverterTypeRoomInfo: FfiConverterRustBuffer {
78787908
FfiConverterUInt64.write(value.highlightCount, into: &buf)
78797909
FfiConverterUInt64.write(value.notificationCount, into: &buf)
78807910
FfiConverterOptionTypeRoomNotificationMode.write(value.userDefinedNotificationMode, into: &buf)
7911+
FfiConverterBool.write(value.hasRoomCall, into: &buf)
7912+
FfiConverterSequenceString.write(value.activeRoomCallParticipants, into: &buf)
78817913
}
78827914
}
78837915

@@ -17156,6 +17188,9 @@ private var initializationResult: InitializationResult {
1715617188
if (uniffi_matrix_sdk_ffi_checksum_method_room_active_members_count() != 62367) {
1715717189
return InitializationResult.apiChecksumMismatch
1715817190
}
17191+
if (uniffi_matrix_sdk_ffi_checksum_method_room_active_room_call_participants() != 5256) {
17192+
return InitializationResult.apiChecksumMismatch
17193+
}
1715917194
if (uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener() != 43137) {
1716017195
return InitializationResult.apiChecksumMismatch
1716117196
}
@@ -17216,6 +17251,9 @@ private var initializationResult: InitializationResult {
1721617251
if (uniffi_matrix_sdk_ffi_checksum_method_room_get_timeline_event_content_by_event_id() != 4338) {
1721717252
return InitializationResult.apiChecksumMismatch
1721817253
}
17254+
if (uniffi_matrix_sdk_ffi_checksum_method_room_has_active_room_call() != 59850) {
17255+
return InitializationResult.apiChecksumMismatch
17256+
}
1721917257
if (uniffi_matrix_sdk_ffi_checksum_method_room_id() != 27132) {
1722017258
return InitializationResult.apiChecksumMismatch
1722117259
}

0 commit comments

Comments
 (0)