@@ -2586,6 +2586,7 @@ public func FfiConverterTypeOidcAuthenticationData_lower(_ value: OidcAuthentica
2586
2586
2587
2587
public protocol RoomProtocol {
2588
2588
func activeMembersCount() -> UInt64
2589
+ func activeRoomCallParticipants() -> [String]
2589
2590
func addTimelineListener(listener: TimelineListener) async -> RoomTimelineListenerResult
2590
2591
func alternativeAliases() -> [String]
2591
2592
func avatarUrl() -> String?
@@ -2606,6 +2607,7 @@ public protocol RoomProtocol {
2606
2607
func fetchMembers() async throws
2607
2608
func getEventTimelineItemByEventId(eventId: String) throws -> EventTimelineItem
2608
2609
func getTimelineEventContentByEventId(eventId: String) throws -> RoomMessageEventContentWithoutRelation
2610
+ func hasActiveRoomCall() -> Bool
2609
2611
func id() -> String
2610
2612
func ignoreUser(userId: String) throws
2611
2613
func inviteUserById(userId: String) throws
@@ -2684,6 +2686,17 @@ public class Room: RoomProtocol {
2684
2686
)
2685
2687
}
2686
2688
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
+
2687
2700
public func addTimelineListener(listener: TimelineListener) async -> RoomTimelineListenerResult {
2688
2701
return try! await uniffiRustCallAsync(
2689
2702
rustFutureFunc: {
@@ -2964,6 +2977,17 @@ public class Room: RoomProtocol {
2964
2977
)
2965
2978
}
2966
2979
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
+
2967
2991
public func id() -> String {
2968
2992
return try! FfiConverterString.lift(
2969
2993
try!
@@ -7805,10 +7829,12 @@ public struct RoomInfo {
7805
7829
public var highlightCount: UInt64
7806
7830
public var notificationCount: UInt64
7807
7831
public var userDefinedNotificationMode: RoomNotificationMode?
7832
+ public var hasRoomCall: Bool
7833
+ public var activeRoomCallParticipants: [String]
7808
7834
7809
7835
// Default memberwise initializers are never public by default, so we
7810
7836
// 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] ) {
7812
7838
self.id = id
7813
7839
self.name = name
7814
7840
self.topic = topic
@@ -7828,6 +7854,8 @@ public struct RoomInfo {
7828
7854
self.highlightCount = highlightCount
7829
7855
self.notificationCount = notificationCount
7830
7856
self.userDefinedNotificationMode = userDefinedNotificationMode
7857
+ self.hasRoomCall = hasRoomCall
7858
+ self.activeRoomCallParticipants = activeRoomCallParticipants
7831
7859
}
7832
7860
}
7833
7861
@@ -7854,7 +7882,9 @@ public struct FfiConverterTypeRoomInfo: FfiConverterRustBuffer {
7854
7882
joinedMembersCount: FfiConverterUInt64.read(from: &buf),
7855
7883
highlightCount: FfiConverterUInt64.read(from: &buf),
7856
7884
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)
7858
7888
)
7859
7889
}
7860
7890
@@ -7878,6 +7908,8 @@ public struct FfiConverterTypeRoomInfo: FfiConverterRustBuffer {
7878
7908
FfiConverterUInt64.write(value.highlightCount, into: &buf)
7879
7909
FfiConverterUInt64.write(value.notificationCount, into: &buf)
7880
7910
FfiConverterOptionTypeRoomNotificationMode.write(value.userDefinedNotificationMode, into: &buf)
7911
+ FfiConverterBool.write(value.hasRoomCall, into: &buf)
7912
+ FfiConverterSequenceString.write(value.activeRoomCallParticipants, into: &buf)
7881
7913
}
7882
7914
}
7883
7915
@@ -17156,6 +17188,9 @@ private var initializationResult: InitializationResult {
17156
17188
if (uniffi_matrix_sdk_ffi_checksum_method_room_active_members_count() != 62367) {
17157
17189
return InitializationResult.apiChecksumMismatch
17158
17190
}
17191
+ if (uniffi_matrix_sdk_ffi_checksum_method_room_active_room_call_participants() != 5256) {
17192
+ return InitializationResult.apiChecksumMismatch
17193
+ }
17159
17194
if (uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener() != 43137) {
17160
17195
return InitializationResult.apiChecksumMismatch
17161
17196
}
@@ -17216,6 +17251,9 @@ private var initializationResult: InitializationResult {
17216
17251
if (uniffi_matrix_sdk_ffi_checksum_method_room_get_timeline_event_content_by_event_id() != 4338) {
17217
17252
return InitializationResult.apiChecksumMismatch
17218
17253
}
17254
+ if (uniffi_matrix_sdk_ffi_checksum_method_room_has_active_room_call() != 59850) {
17255
+ return InitializationResult.apiChecksumMismatch
17256
+ }
17219
17257
if (uniffi_matrix_sdk_ffi_checksum_method_room_id() != 27132) {
17220
17258
return InitializationResult.apiChecksumMismatch
17221
17259
}
0 commit comments