@@ -25425,7 +25425,11 @@ data class RoomPreviewInfo (
25425
25425
/**
25426
25426
* Whether the room is direct or not, if known.
25427
25427
*/
25428
- var `isDirect`: kotlin.Boolean?
25428
+ var `isDirect`: kotlin.Boolean?,
25429
+ /**
25430
+ * Room heroes.
25431
+ */
25432
+ var `heroes`: List<RoomHero>?
25429
25433
) {
25430
25434
25431
25435
companion object
@@ -25446,6 +25450,7 @@ public object FfiConverterTypeRoomPreviewInfo: FfiConverterRustBuffer<RoomPrevie
25446
25450
FfiConverterOptionalTypeMembership.read(buf),
25447
25451
FfiConverterTypeJoinRule.read(buf),
25448
25452
FfiConverterOptionalBoolean.read(buf),
25453
+ FfiConverterOptionalSequenceTypeRoomHero.read(buf),
25449
25454
)
25450
25455
}
25451
25456
@@ -25461,7 +25466,8 @@ public object FfiConverterTypeRoomPreviewInfo: FfiConverterRustBuffer<RoomPrevie
25461
25466
FfiConverterBoolean.allocationSize(value.`isHistoryWorldReadable`) +
25462
25467
FfiConverterOptionalTypeMembership.allocationSize(value.`membership`) +
25463
25468
FfiConverterTypeJoinRule.allocationSize(value.`joinRule`) +
25464
- FfiConverterOptionalBoolean.allocationSize(value.`isDirect`)
25469
+ FfiConverterOptionalBoolean.allocationSize(value.`isDirect`) +
25470
+ FfiConverterOptionalSequenceTypeRoomHero.allocationSize(value.`heroes`)
25465
25471
)
25466
25472
25467
25473
override fun write(value: RoomPreviewInfo, buf: ByteBuffer) {
@@ -25477,6 +25483,7 @@ public object FfiConverterTypeRoomPreviewInfo: FfiConverterRustBuffer<RoomPrevie
25477
25483
FfiConverterOptionalTypeMembership.write(value.`membership`, buf)
25478
25484
FfiConverterTypeJoinRule.write(value.`joinRule`, buf)
25479
25485
FfiConverterOptionalBoolean.write(value.`isDirect`, buf)
25486
+ FfiConverterOptionalSequenceTypeRoomHero.write(value.`heroes`, buf)
25480
25487
}
25481
25488
}
25482
25489
@@ -27181,6 +27188,12 @@ sealed class EditedContent: Disposable {
27181
27188
companion object
27182
27189
}
27183
27190
27191
+ data class MediaCaption(
27192
+ val `caption`: kotlin.String?,
27193
+ val `formattedCaption`: FormattedBody?) : EditedContent() {
27194
+ companion object
27195
+ }
27196
+
27184
27197
data class PollStart(
27185
27198
val `pollData`: PollData) : EditedContent() {
27186
27199
companion object
@@ -27196,6 +27209,14 @@ sealed class EditedContent: Disposable {
27196
27209
Disposable.destroy(this.`content`)
27197
27210
27198
27211
27212
+ }
27213
+ is EditedContent.MediaCaption -> {
27214
+
27215
+ Disposable.destroy(this.`caption`)
27216
+
27217
+ Disposable.destroy(this.`formattedCaption`)
27218
+
27219
+
27199
27220
}
27200
27221
is EditedContent.PollStart -> {
27201
27222
@@ -27215,7 +27236,11 @@ public object FfiConverterTypeEditedContent : FfiConverterRustBuffer<EditedConte
27215
27236
1 -> EditedContent.RoomMessage(
27216
27237
FfiConverterTypeRoomMessageEventContentWithoutRelation.read(buf),
27217
27238
)
27218
- 2 -> EditedContent.PollStart(
27239
+ 2 -> EditedContent.MediaCaption(
27240
+ FfiConverterOptionalString.read(buf),
27241
+ FfiConverterOptionalTypeFormattedBody.read(buf),
27242
+ )
27243
+ 3 -> EditedContent.PollStart(
27219
27244
FfiConverterTypePollData.read(buf),
27220
27245
)
27221
27246
else -> throw RuntimeException("invalid enum value, something is very wrong!!")
@@ -27230,6 +27255,14 @@ public object FfiConverterTypeEditedContent : FfiConverterRustBuffer<EditedConte
27230
27255
+ FfiConverterTypeRoomMessageEventContentWithoutRelation.allocationSize(value.`content`)
27231
27256
)
27232
27257
}
27258
+ is EditedContent.MediaCaption -> {
27259
+ // Add the size for the Int that specifies the variant plus the size needed for all fields
27260
+ (
27261
+ 4UL
27262
+ + FfiConverterOptionalString.allocationSize(value.`caption`)
27263
+ + FfiConverterOptionalTypeFormattedBody.allocationSize(value.`formattedCaption`)
27264
+ )
27265
+ }
27233
27266
is EditedContent.PollStart -> {
27234
27267
// Add the size for the Int that specifies the variant plus the size needed for all fields
27235
27268
(
@@ -27246,8 +27279,14 @@ public object FfiConverterTypeEditedContent : FfiConverterRustBuffer<EditedConte
27246
27279
FfiConverterTypeRoomMessageEventContentWithoutRelation.write(value.`content`, buf)
27247
27280
Unit
27248
27281
}
27249
- is EditedContent.PollStart -> {
27282
+ is EditedContent.MediaCaption -> {
27250
27283
buf.putInt(2)
27284
+ FfiConverterOptionalString.write(value.`caption`, buf)
27285
+ FfiConverterOptionalTypeFormattedBody.write(value.`formattedCaption`, buf)
27286
+ Unit
27287
+ }
27288
+ is EditedContent.PollStart -> {
27289
+ buf.putInt(3)
27251
27290
FfiConverterTypePollData.write(value.`pollData`, buf)
27252
27291
Unit
27253
27292
}
@@ -37623,6 +37662,35 @@ public object FfiConverterOptionalSequenceTypeTimelineItem: FfiConverterRustBuff
37623
37662
37624
37663
37625
37664
37665
+ public object FfiConverterOptionalSequenceTypeRoomHero: FfiConverterRustBuffer<List<RoomHero>?> {
37666
+ override fun read(buf: ByteBuffer): List<RoomHero>? {
37667
+ if (buf.get().toInt() == 0) {
37668
+ return null
37669
+ }
37670
+ return FfiConverterSequenceTypeRoomHero.read(buf)
37671
+ }
37672
+
37673
+ override fun allocationSize(value: List<RoomHero>?): ULong {
37674
+ if (value == null) {
37675
+ return 1UL
37676
+ } else {
37677
+ return 1UL + FfiConverterSequenceTypeRoomHero.allocationSize(value)
37678
+ }
37679
+ }
37680
+
37681
+ override fun write(value: List<RoomHero>?, buf: ByteBuffer) {
37682
+ if (value == null) {
37683
+ buf.put(0)
37684
+ } else {
37685
+ buf.put(1)
37686
+ FfiConverterSequenceTypeRoomHero.write(value, buf)
37687
+ }
37688
+ }
37689
+ }
37690
+
37691
+
37692
+
37693
+
37626
37694
public object FfiConverterOptionalSequenceTypeRoomMember: FfiConverterRustBuffer<List<RoomMember>?> {
37627
37695
override fun read(buf: ByteBuffer): List<RoomMember>? {
37628
37696
if (buf.get().toInt() == 0) {
0 commit comments