@@ -14191,118 +14191,6 @@ public func FfiConverterTypeCreateRoomParameters_lower(_ value: CreateRoomParame
14191
14191
}
14192
14192
14193
14193
14194
- /**
14195
- * Well-known settings specific to ElementCall
14196
- */
14197
- public struct ElementCallWellKnown {
14198
- public var widgetUrl: String
14199
-
14200
- // Default memberwise initializers are never public by default, so we
14201
- // declare one manually.
14202
- public init(widgetUrl: String) {
14203
- self.widgetUrl = widgetUrl
14204
- }
14205
- }
14206
-
14207
-
14208
-
14209
- extension ElementCallWellKnown: Equatable, Hashable {
14210
- public static func ==(lhs: ElementCallWellKnown, rhs: ElementCallWellKnown) -> Bool {
14211
- if lhs.widgetUrl != rhs.widgetUrl {
14212
- return false
14213
- }
14214
- return true
14215
- }
14216
-
14217
- public func hash(into hasher: inout Hasher) {
14218
- hasher.combine(widgetUrl)
14219
- }
14220
- }
14221
-
14222
-
14223
- public struct FfiConverterTypeElementCallWellKnown: FfiConverterRustBuffer {
14224
- public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ElementCallWellKnown {
14225
- return
14226
- try ElementCallWellKnown(
14227
- widgetUrl: FfiConverterString.read(from: &buf)
14228
- )
14229
- }
14230
-
14231
- public static func write(_ value: ElementCallWellKnown, into buf: inout [UInt8]) {
14232
- FfiConverterString.write(value.widgetUrl, into: &buf)
14233
- }
14234
- }
14235
-
14236
-
14237
- public func FfiConverterTypeElementCallWellKnown_lift(_ buf: RustBuffer) throws -> ElementCallWellKnown {
14238
- return try FfiConverterTypeElementCallWellKnown.lift(buf)
14239
- }
14240
-
14241
- public func FfiConverterTypeElementCallWellKnown_lower(_ value: ElementCallWellKnown) -> RustBuffer {
14242
- return FfiConverterTypeElementCallWellKnown.lower(value)
14243
- }
14244
-
14245
-
14246
- /**
14247
- * Element specific well-known settings
14248
- */
14249
- public struct ElementWellKnown {
14250
- public var call: ElementCallWellKnown?
14251
- public var registrationHelperUrl: String?
14252
-
14253
- // Default memberwise initializers are never public by default, so we
14254
- // declare one manually.
14255
- public init(call: ElementCallWellKnown?, registrationHelperUrl: String?) {
14256
- self.call = call
14257
- self.registrationHelperUrl = registrationHelperUrl
14258
- }
14259
- }
14260
-
14261
-
14262
-
14263
- extension ElementWellKnown: Equatable, Hashable {
14264
- public static func ==(lhs: ElementWellKnown, rhs: ElementWellKnown) -> Bool {
14265
- if lhs.call != rhs.call {
14266
- return false
14267
- }
14268
- if lhs.registrationHelperUrl != rhs.registrationHelperUrl {
14269
- return false
14270
- }
14271
- return true
14272
- }
14273
-
14274
- public func hash(into hasher: inout Hasher) {
14275
- hasher.combine(call)
14276
- hasher.combine(registrationHelperUrl)
14277
- }
14278
- }
14279
-
14280
-
14281
- public struct FfiConverterTypeElementWellKnown: FfiConverterRustBuffer {
14282
- public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ElementWellKnown {
14283
- return
14284
- try ElementWellKnown(
14285
- call: FfiConverterOptionTypeElementCallWellKnown.read(from: &buf),
14286
- registrationHelperUrl: FfiConverterOptionString.read(from: &buf)
14287
- )
14288
- }
14289
-
14290
- public static func write(_ value: ElementWellKnown, into buf: inout [UInt8]) {
14291
- FfiConverterOptionTypeElementCallWellKnown.write(value.call, into: &buf)
14292
- FfiConverterOptionString.write(value.registrationHelperUrl, into: &buf)
14293
- }
14294
- }
14295
-
14296
-
14297
- public func FfiConverterTypeElementWellKnown_lift(_ buf: RustBuffer) throws -> ElementWellKnown {
14298
- return try FfiConverterTypeElementWellKnown.lift(buf)
14299
- }
14300
-
14301
- public func FfiConverterTypeElementWellKnown_lower(_ value: ElementWellKnown) -> RustBuffer {
14302
- return FfiConverterTypeElementWellKnown.lower(value)
14303
- }
14304
-
14305
-
14306
14194
public struct EmoteMessageContent {
14307
14195
public var body: String
14308
14196
public var formatted: FormattedBody?
@@ -16070,17 +15958,19 @@ public struct NotificationRoomInfo {
16070
15958
public var displayName: String
16071
15959
public var avatarUrl: String?
16072
15960
public var canonicalAlias: String?
15961
+ public var topic: String?
16073
15962
public var joinRule: JoinRule?
16074
15963
public var joinedMembersCount: UInt64
16075
15964
public var isEncrypted: Bool?
16076
15965
public var isDirect: Bool
16077
15966
16078
15967
// Default memberwise initializers are never public by default, so we
16079
15968
// declare one manually.
16080
- public init(displayName: String, avatarUrl: String?, canonicalAlias: String?, joinRule: JoinRule?, joinedMembersCount: UInt64, isEncrypted: Bool?, isDirect: Bool) {
15969
+ public init(displayName: String, avatarUrl: String?, canonicalAlias: String?, topic: String?, joinRule: JoinRule?, joinedMembersCount: UInt64, isEncrypted: Bool?, isDirect: Bool) {
16081
15970
self.displayName = displayName
16082
15971
self.avatarUrl = avatarUrl
16083
15972
self.canonicalAlias = canonicalAlias
15973
+ self.topic = topic
16084
15974
self.joinRule = joinRule
16085
15975
self.joinedMembersCount = joinedMembersCount
16086
15976
self.isEncrypted = isEncrypted
@@ -16101,6 +15991,9 @@ extension NotificationRoomInfo: Equatable, Hashable {
16101
15991
if lhs.canonicalAlias != rhs.canonicalAlias {
16102
15992
return false
16103
15993
}
15994
+ if lhs.topic != rhs.topic {
15995
+ return false
15996
+ }
16104
15997
if lhs.joinRule != rhs.joinRule {
16105
15998
return false
16106
15999
}
@@ -16120,6 +16013,7 @@ extension NotificationRoomInfo: Equatable, Hashable {
16120
16013
hasher.combine(displayName)
16121
16014
hasher.combine(avatarUrl)
16122
16015
hasher.combine(canonicalAlias)
16016
+ hasher.combine(topic)
16123
16017
hasher.combine(joinRule)
16124
16018
hasher.combine(joinedMembersCount)
16125
16019
hasher.combine(isEncrypted)
@@ -16135,6 +16029,7 @@ public struct FfiConverterTypeNotificationRoomInfo: FfiConverterRustBuffer {
16135
16029
displayName: FfiConverterString.read(from: &buf),
16136
16030
avatarUrl: FfiConverterOptionString.read(from: &buf),
16137
16031
canonicalAlias: FfiConverterOptionString.read(from: &buf),
16032
+ topic: FfiConverterOptionString.read(from: &buf),
16138
16033
joinRule: FfiConverterOptionTypeJoinRule.read(from: &buf),
16139
16034
joinedMembersCount: FfiConverterUInt64.read(from: &buf),
16140
16035
isEncrypted: FfiConverterOptionBool.read(from: &buf),
@@ -16146,6 +16041,7 @@ public struct FfiConverterTypeNotificationRoomInfo: FfiConverterRustBuffer {
16146
16041
FfiConverterString.write(value.displayName, into: &buf)
16147
16042
FfiConverterOptionString.write(value.avatarUrl, into: &buf)
16148
16043
FfiConverterOptionString.write(value.canonicalAlias, into: &buf)
16044
+ FfiConverterOptionString.write(value.topic, into: &buf)
16149
16045
FfiConverterOptionTypeJoinRule.write(value.joinRule, into: &buf)
16150
16046
FfiConverterUInt64.write(value.joinedMembersCount, into: &buf)
16151
16047
FfiConverterOptionBool.write(value.isEncrypted, into: &buf)
@@ -34325,27 +34221,6 @@ fileprivate struct FfiConverterOptionTypeComposerDraft: FfiConverterRustBuffer {
34325
34221
}
34326
34222
}
34327
34223
34328
- fileprivate struct FfiConverterOptionTypeElementCallWellKnown: FfiConverterRustBuffer {
34329
- typealias SwiftType = ElementCallWellKnown?
34330
-
34331
- public static func write(_ value: SwiftType, into buf: inout [UInt8]) {
34332
- guard let value = value else {
34333
- writeInt(&buf, Int8(0))
34334
- return
34335
- }
34336
- writeInt(&buf, Int8(1))
34337
- FfiConverterTypeElementCallWellKnown.write(value, into: &buf)
34338
- }
34339
-
34340
- public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {
34341
- switch try readInt(&buf) as Int8 {
34342
- case 0: return nil
34343
- case 1: return try FfiConverterTypeElementCallWellKnown.read(from: &buf)
34344
- default: throw UniffiInternalError.unexpectedOptionalTag
34345
- }
34346
- }
34347
- }
34348
-
34349
34224
fileprivate struct FfiConverterOptionTypeEventTimelineItem: FfiConverterRustBuffer {
34350
34225
typealias SwiftType = EventTimelineItem?
34351
34226
@@ -36666,7 +36541,7 @@ public func isRoomAliasFormatValid(alias: String) -> Bool {
36666
36541
* Log an event.
36667
36542
*
36668
36543
* The target should be something like a module path, and can be referenced in
36669
- * the filter string given to `setup_tracing `. `level` and `target` for a
36544
+ * the filter string given to `init_platform `. `level` and `target` for a
36670
36545
* callsite are fixed at the first `log_event` call for that callsite and can
36671
36546
* not be changed afterwards, i.e. the level and target passed for second and
36672
36547
* following `log_event`s with the same callsite will be ignored.
@@ -36686,16 +36561,6 @@ public func logEvent(file: String, line: UInt32?, level: LogLevel, target: Strin
36686
36561
)
36687
36562
}
36688
36563
}
36689
- /**
36690
- * Helper function to parse a string into a ElementWellKnown struct
36691
- */
36692
- public func makeElementWellKnown(string: String)throws -> ElementWellKnown {
36693
- return try FfiConverterTypeElementWellKnown.lift(try rustCallWithError(FfiConverterTypeClientError.lift) {
36694
- uniffi_matrix_sdk_ffi_fn_func_make_element_well_known(
36695
- FfiConverterString.lower(string),$0
36696
- )
36697
- })
36698
- }
36699
36564
public func makeWidgetDriver(settings: WidgetSettings)throws -> WidgetDriverAndHandle {
36700
36565
return try FfiConverterTypeWidgetDriverAndHandle.lift(try rustCallWithError(FfiConverterTypeParseError.lift) {
36701
36566
uniffi_matrix_sdk_ffi_fn_func_make_widget_driver(
@@ -36863,10 +36728,7 @@ private var initializationResult: InitializationResult = {
36863
36728
if (uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid() != 54845) {
36864
36729
return InitializationResult.apiChecksumMismatch
36865
36730
}
36866
- if (uniffi_matrix_sdk_ffi_checksum_func_log_event() != 62286) {
36867
- return InitializationResult.apiChecksumMismatch
36868
- }
36869
- if (uniffi_matrix_sdk_ffi_checksum_func_make_element_well_known() != 21379) {
36731
+ if (uniffi_matrix_sdk_ffi_checksum_func_log_event() != 55646) {
36870
36732
return InitializationResult.apiChecksumMismatch
36871
36733
}
36872
36734
if (uniffi_matrix_sdk_ffi_checksum_func_make_widget_driver() != 34206) {
0 commit comments