@@ -2472,6 +2472,7 @@ public func FfiConverterTypeNotificationClientBuilder_lower(_ value: Notificatio
2472
2472
2473
2473
2474
2474
public protocol NotificationSettingsProtocol : AnyObject {
2475
+ func canHomeserverPushEncryptedEventToDevice() async -> Bool
2475
2476
func containsKeywordsRules() async -> Bool
2476
2477
func getDefaultRoomNotificationMode(isEncrypted: Bool, isOneToOne: Bool) async -> RoomNotificationMode
2477
2478
func getRoomNotificationSettings(roomId: String, isEncrypted: Bool, isOneToOne: Bool) async throws -> RoomNotificationSettings
@@ -2510,6 +2511,24 @@ public class NotificationSettings: NotificationSettingsProtocol {
2510
2511
2511
2512
2512
2513
2514
+ public func canHomeserverPushEncryptedEventToDevice() async -> Bool {
2515
+ return try! await uniffiRustCallAsync(
2516
+ rustFutureFunc: {
2517
+ uniffi_matrix_sdk_ffi_fn_method_notificationsettings_can_homeserver_push_encrypted_event_to_device(
2518
+ self.pointer
2519
+ )
2520
+ },
2521
+ pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_i8,
2522
+ completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_i8,
2523
+ freeFunc: ffi_matrix_sdk_ffi_rust_future_free_i8,
2524
+ liftFunc: FfiConverterBool.lift,
2525
+ errorHandler: nil
2526
+
2527
+ )
2528
+ }
2529
+
2530
+
2531
+
2513
2532
public func containsKeywordsRules() async -> Bool {
2514
2533
return try! await uniffiRustCallAsync(
2515
2534
rustFutureFunc: {
@@ -17706,6 +17725,14 @@ public func generateWebviewUrl(widgetSettings: WidgetSettings, room: Room, props
17706
17725
17707
17726
17708
17727
17728
+ public func getElementCallRequiredPermissions() -> WidgetCapabilities {
17729
+ return try! FfiConverterTypeWidgetCapabilities.lift(
17730
+ try! rustCall() {
17731
+ uniffi_matrix_sdk_ffi_fn_func_get_element_call_required_permissions($0)
17732
+ }
17733
+ )
17734
+ }
17735
+
17709
17736
public func logEvent(file: String, line: UInt32?, level: LogLevel, target: String, message: String) {
17710
17737
try! rustCall() {
17711
17738
uniffi_matrix_sdk_ffi_fn_func_log_event(
@@ -17840,6 +17867,9 @@ private var initializationResult: InitializationResult {
17840
17867
if (uniffi_matrix_sdk_ffi_checksum_func_generate_webview_url() != 16581) {
17841
17868
return InitializationResult.apiChecksumMismatch
17842
17869
}
17870
+ if (uniffi_matrix_sdk_ffi_checksum_func_get_element_call_required_permissions() != 51289) {
17871
+ return InitializationResult.apiChecksumMismatch
17872
+ }
17843
17873
if (uniffi_matrix_sdk_ffi_checksum_func_log_event() != 58164) {
17844
17874
return InitializationResult.apiChecksumMismatch
17845
17875
}
@@ -18170,6 +18200,9 @@ private var initializationResult: InitializationResult {
18170
18200
if (uniffi_matrix_sdk_ffi_checksum_method_notificationclientbuilder_finish() != 12382) {
18171
18201
return InitializationResult.apiChecksumMismatch
18172
18202
}
18203
+ if (uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_can_homeserver_push_encrypted_event_to_device() != 22382) {
18204
+ return InitializationResult.apiChecksumMismatch
18205
+ }
18173
18206
if (uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_contains_keywords_rules() != 42972) {
18174
18207
return InitializationResult.apiChecksumMismatch
18175
18208
}
0 commit comments