Skip to content

Commit

Permalink
Bump SDK version to 0.2.64 (matrix-rust-sdk to 60893d279765cb03bc4fa6…
Browse files Browse the repository at this point in the history
…a91d0696577e106a7a)
  • Loading branch information
github-actions committed Nov 20, 2024
1 parent b75b8c9 commit 84fe1d7
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 5 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/BuildVersionsSDK.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
object BuildVersionsSDK {
const val majorVersion = 0
const val minorVersion = 2
const val patchVersion = 63
const val patchVersion = 64
}
Original file line number Diff line number Diff line change
Expand Up @@ -25425,7 +25425,11 @@ data class RoomPreviewInfo (
/**
* Whether the room is direct or not, if known.
*/
var `isDirect`: kotlin.Boolean?
var `isDirect`: kotlin.Boolean?,
/**
* Room heroes.
*/
var `heroes`: List<RoomHero>?
) {

companion object
Expand All @@ -25446,6 +25450,7 @@ public object FfiConverterTypeRoomPreviewInfo: FfiConverterRustBuffer<RoomPrevie
FfiConverterOptionalTypeMembership.read(buf),
FfiConverterTypeJoinRule.read(buf),
FfiConverterOptionalBoolean.read(buf),
FfiConverterOptionalSequenceTypeRoomHero.read(buf),
)
}

Expand All @@ -25461,7 +25466,8 @@ public object FfiConverterTypeRoomPreviewInfo: FfiConverterRustBuffer<RoomPrevie
FfiConverterBoolean.allocationSize(value.`isHistoryWorldReadable`) +
FfiConverterOptionalTypeMembership.allocationSize(value.`membership`) +
FfiConverterTypeJoinRule.allocationSize(value.`joinRule`) +
FfiConverterOptionalBoolean.allocationSize(value.`isDirect`)
FfiConverterOptionalBoolean.allocationSize(value.`isDirect`) +
FfiConverterOptionalSequenceTypeRoomHero.allocationSize(value.`heroes`)
)

override fun write(value: RoomPreviewInfo, buf: ByteBuffer) {
Expand All @@ -25477,6 +25483,7 @@ public object FfiConverterTypeRoomPreviewInfo: FfiConverterRustBuffer<RoomPrevie
FfiConverterOptionalTypeMembership.write(value.`membership`, buf)
FfiConverterTypeJoinRule.write(value.`joinRule`, buf)
FfiConverterOptionalBoolean.write(value.`isDirect`, buf)
FfiConverterOptionalSequenceTypeRoomHero.write(value.`heroes`, buf)
}
}

Expand Down Expand Up @@ -27181,6 +27188,12 @@ sealed class EditedContent: Disposable {
companion object
}

data class MediaCaption(
val `caption`: kotlin.String?,
val `formattedCaption`: FormattedBody?) : EditedContent() {
companion object
}

data class PollStart(
val `pollData`: PollData) : EditedContent() {
companion object
Expand All @@ -27196,6 +27209,14 @@ sealed class EditedContent: Disposable {
Disposable.destroy(this.`content`)


}
is EditedContent.MediaCaption -> {

Disposable.destroy(this.`caption`)

Disposable.destroy(this.`formattedCaption`)


}
is EditedContent.PollStart -> {

Expand All @@ -27215,7 +27236,11 @@ public object FfiConverterTypeEditedContent : FfiConverterRustBuffer<EditedConte
1 -> EditedContent.RoomMessage(
FfiConverterTypeRoomMessageEventContentWithoutRelation.read(buf),
)
2 -> EditedContent.PollStart(
2 -> EditedContent.MediaCaption(
FfiConverterOptionalString.read(buf),
FfiConverterOptionalTypeFormattedBody.read(buf),
)
3 -> EditedContent.PollStart(
FfiConverterTypePollData.read(buf),
)
else -> throw RuntimeException("invalid enum value, something is very wrong!!")
Expand All @@ -27230,6 +27255,14 @@ public object FfiConverterTypeEditedContent : FfiConverterRustBuffer<EditedConte
+ FfiConverterTypeRoomMessageEventContentWithoutRelation.allocationSize(value.`content`)
)
}
is EditedContent.MediaCaption -> {
// Add the size for the Int that specifies the variant plus the size needed for all fields
(
4UL
+ FfiConverterOptionalString.allocationSize(value.`caption`)
+ FfiConverterOptionalTypeFormattedBody.allocationSize(value.`formattedCaption`)
)
}
is EditedContent.PollStart -> {
// Add the size for the Int that specifies the variant plus the size needed for all fields
(
Expand All @@ -27246,8 +27279,14 @@ public object FfiConverterTypeEditedContent : FfiConverterRustBuffer<EditedConte
FfiConverterTypeRoomMessageEventContentWithoutRelation.write(value.`content`, buf)
Unit
}
is EditedContent.PollStart -> {
is EditedContent.MediaCaption -> {
buf.putInt(2)
FfiConverterOptionalString.write(value.`caption`, buf)
FfiConverterOptionalTypeFormattedBody.write(value.`formattedCaption`, buf)
Unit
}
is EditedContent.PollStart -> {
buf.putInt(3)
FfiConverterTypePollData.write(value.`pollData`, buf)
Unit
}
Expand Down Expand Up @@ -37623,6 +37662,35 @@ public object FfiConverterOptionalSequenceTypeTimelineItem: FfiConverterRustBuff



public object FfiConverterOptionalSequenceTypeRoomHero: FfiConverterRustBuffer<List<RoomHero>?> {
override fun read(buf: ByteBuffer): List<RoomHero>? {
if (buf.get().toInt() == 0) {
return null
}
return FfiConverterSequenceTypeRoomHero.read(buf)
}

override fun allocationSize(value: List<RoomHero>?): ULong {
if (value == null) {
return 1UL
} else {
return 1UL + FfiConverterSequenceTypeRoomHero.allocationSize(value)
}
}

override fun write(value: List<RoomHero>?, buf: ByteBuffer) {
if (value == null) {
buf.put(0)
} else {
buf.put(1)
FfiConverterSequenceTypeRoomHero.write(value, buf)
}
}
}




public object FfiConverterOptionalSequenceTypeRoomMember: FfiConverterRustBuffer<List<RoomMember>?> {
override fun read(buf: ByteBuffer): List<RoomMember>? {
if (buf.get().toInt() == 0) {
Expand Down

0 comments on commit 84fe1d7

Please sign in to comment.