@@ -25425,7 +25425,11 @@ data class RoomPreviewInfo (
2542525425 /**
2542625426 * Whether the room is direct or not, if known.
2542725427 */
25428- var `isDirect`: kotlin.Boolean?
25428+ var `isDirect`: kotlin.Boolean?,
25429+ /**
25430+ * Room heroes.
25431+ */
25432+ var `heroes`: List<RoomHero>?
2542925433) {
2543025434
2543125435 companion object
@@ -25446,6 +25450,7 @@ public object FfiConverterTypeRoomPreviewInfo: FfiConverterRustBuffer<RoomPrevie
2544625450 FfiConverterOptionalTypeMembership.read(buf),
2544725451 FfiConverterTypeJoinRule.read(buf),
2544825452 FfiConverterOptionalBoolean.read(buf),
25453+ FfiConverterOptionalSequenceTypeRoomHero.read(buf),
2544925454 )
2545025455 }
2545125456
@@ -25461,7 +25466,8 @@ public object FfiConverterTypeRoomPreviewInfo: FfiConverterRustBuffer<RoomPrevie
2546125466 FfiConverterBoolean.allocationSize(value.`isHistoryWorldReadable`) +
2546225467 FfiConverterOptionalTypeMembership.allocationSize(value.`membership`) +
2546325468 FfiConverterTypeJoinRule.allocationSize(value.`joinRule`) +
25464- FfiConverterOptionalBoolean.allocationSize(value.`isDirect`)
25469+ FfiConverterOptionalBoolean.allocationSize(value.`isDirect`) +
25470+ FfiConverterOptionalSequenceTypeRoomHero.allocationSize(value.`heroes`)
2546525471 )
2546625472
2546725473 override fun write(value: RoomPreviewInfo, buf: ByteBuffer) {
@@ -25477,6 +25483,7 @@ public object FfiConverterTypeRoomPreviewInfo: FfiConverterRustBuffer<RoomPrevie
2547725483 FfiConverterOptionalTypeMembership.write(value.`membership`, buf)
2547825484 FfiConverterTypeJoinRule.write(value.`joinRule`, buf)
2547925485 FfiConverterOptionalBoolean.write(value.`isDirect`, buf)
25486+ FfiConverterOptionalSequenceTypeRoomHero.write(value.`heroes`, buf)
2548025487 }
2548125488}
2548225489
@@ -27181,6 +27188,12 @@ sealed class EditedContent: Disposable {
2718127188 companion object
2718227189 }
2718327190
27191+ data class MediaCaption(
27192+ val `caption`: kotlin.String?,
27193+ val `formattedCaption`: FormattedBody?) : EditedContent() {
27194+ companion object
27195+ }
27196+
2718427197 data class PollStart(
2718527198 val `pollData`: PollData) : EditedContent() {
2718627199 companion object
@@ -27196,6 +27209,14 @@ sealed class EditedContent: Disposable {
2719627209 Disposable.destroy(this.`content`)
2719727210
2719827211
27212+ }
27213+ is EditedContent.MediaCaption -> {
27214+
27215+ Disposable.destroy(this.`caption`)
27216+
27217+ Disposable.destroy(this.`formattedCaption`)
27218+
27219+
2719927220 }
2720027221 is EditedContent.PollStart -> {
2720127222
@@ -27215,7 +27236,11 @@ public object FfiConverterTypeEditedContent : FfiConverterRustBuffer<EditedConte
2721527236 1 -> EditedContent.RoomMessage(
2721627237 FfiConverterTypeRoomMessageEventContentWithoutRelation.read(buf),
2721727238 )
27218- 2 -> EditedContent.PollStart(
27239+ 2 -> EditedContent.MediaCaption(
27240+ FfiConverterOptionalString.read(buf),
27241+ FfiConverterOptionalTypeFormattedBody.read(buf),
27242+ )
27243+ 3 -> EditedContent.PollStart(
2721927244 FfiConverterTypePollData.read(buf),
2722027245 )
2722127246 else -> throw RuntimeException("invalid enum value, something is very wrong!!")
@@ -27230,6 +27255,14 @@ public object FfiConverterTypeEditedContent : FfiConverterRustBuffer<EditedConte
2723027255 + FfiConverterTypeRoomMessageEventContentWithoutRelation.allocationSize(value.`content`)
2723127256 )
2723227257 }
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+ }
2723327266 is EditedContent.PollStart -> {
2723427267 // Add the size for the Int that specifies the variant plus the size needed for all fields
2723527268 (
@@ -27246,8 +27279,14 @@ public object FfiConverterTypeEditedContent : FfiConverterRustBuffer<EditedConte
2724627279 FfiConverterTypeRoomMessageEventContentWithoutRelation.write(value.`content`, buf)
2724727280 Unit
2724827281 }
27249- is EditedContent.PollStart -> {
27282+ is EditedContent.MediaCaption -> {
2725027283 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)
2725127290 FfiConverterTypePollData.write(value.`pollData`, buf)
2725227291 Unit
2725327292 }
@@ -37623,6 +37662,35 @@ public object FfiConverterOptionalSequenceTypeTimelineItem: FfiConverterRustBuff
3762337662
3762437663
3762537664
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+
3762637694public object FfiConverterOptionalSequenceTypeRoomMember: FfiConverterRustBuffer<List<RoomMember>?> {
3762737695 override fun read(buf: ByteBuffer): List<RoomMember>? {
3762837696 if (buf.get().toInt() == 0) {
0 commit comments