Skip to content

Commit fad1cc5

Browse files
author
github-actions
committed
Bump SDK version to 25.09.17 (matrix-rust-sdk to efcb7125ad3202f1e4c1204c0b9a1355551a145b)
1 parent 430deab commit fad1cc5

File tree

2 files changed

+42
-52
lines changed

2 files changed

+42
-52
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object BuildVersionsSDK {
22
const val majorVersion = 25
33
const val minorVersion = 9
4-
const val patchVersion = 16
4+
const val patchVersion = 17
55
}

sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt

Lines changed: 41 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -31246,7 +31246,11 @@ data class SpaceRoom (
3124631246
/**
3124731247
* A list of room members considered to be heroes.
3124831248
*/
31249-
var `heroes`: List<RoomHero>?
31249+
var `heroes`: List<RoomHero>?,
31250+
/**
31251+
* The via parameters of the room.
31252+
*/
31253+
var `via`: List<kotlin.String>
3125031254
) {
3125131255

3125231256
companion object
@@ -31268,6 +31272,7 @@ public object FfiConverterTypeSpaceRoom: FfiConverterRustBuffer<SpaceRoom> {
3126831272
FfiConverterULong.read(buf),
3126931273
FfiConverterOptionalTypeMembership.read(buf),
3127031274
FfiConverterOptionalSequenceTypeRoomHero.read(buf),
31275+
FfiConverterSequenceString.read(buf),
3127131276
)
3127231277
}
3127331278

@@ -31284,7 +31289,8 @@ public object FfiConverterTypeSpaceRoom: FfiConverterRustBuffer<SpaceRoom> {
3128431289
FfiConverterBoolean.allocationSize(value.`guestCanJoin`) +
3128531290
FfiConverterULong.allocationSize(value.`childrenCount`) +
3128631291
FfiConverterOptionalTypeMembership.allocationSize(value.`state`) +
31287-
FfiConverterOptionalSequenceTypeRoomHero.allocationSize(value.`heroes`)
31292+
FfiConverterOptionalSequenceTypeRoomHero.allocationSize(value.`heroes`) +
31293+
FfiConverterSequenceString.allocationSize(value.`via`)
3128831294
)
3128931295

3129031296
override fun write(value: SpaceRoom, buf: ByteBuffer) {
@@ -31301,6 +31307,7 @@ public object FfiConverterTypeSpaceRoom: FfiConverterRustBuffer<SpaceRoom> {
3130131307
FfiConverterULong.write(value.`childrenCount`, buf)
3130231308
FfiConverterOptionalTypeMembership.write(value.`state`, buf)
3130331309
FfiConverterOptionalSequenceTypeRoomHero.write(value.`heroes`, buf)
31310+
FfiConverterSequenceString.write(value.`via`, buf)
3130431311
}
3130531312
}
3130631313

@@ -37193,8 +37200,12 @@ sealed class MessageLikeEventContent: Disposable {
3719337200
object CallInvite : MessageLikeEventContent()
3719437201

3719537202

37196-
data class CallNotify(
37197-
val `notifyType`: NotifyType) : MessageLikeEventContent() {
37203+
data class RtcNotification(
37204+
val `notificationType`: RtcNotificationType,
37205+
/**
37206+
* The timestamp at which this notification is considered invalid.
37207+
*/
37208+
val `expirationTs`: Timestamp) : MessageLikeEventContent() {
3719837209
companion object
3719937210
}
3720037211

@@ -37262,9 +37273,11 @@ sealed class MessageLikeEventContent: Disposable {
3726237273
}
3726337274
is MessageLikeEventContent.CallInvite -> {// Nothing to destroy
3726437275
}
37265-
is MessageLikeEventContent.CallNotify -> {
37276+
is MessageLikeEventContent.RtcNotification -> {
3726637277

37267-
Disposable.destroy(this.`notifyType`)
37278+
Disposable.destroy(this.`notificationType`)
37279+
37280+
Disposable.destroy(this.`expirationTs`)
3726837281

3726937282

3727037283
}
@@ -37329,8 +37342,9 @@ public object FfiConverterTypeMessageLikeEventContent : FfiConverterRustBuffer<M
3732937342
return when(buf.getInt()) {
3733037343
1 -> MessageLikeEventContent.CallAnswer
3733137344
2 -> MessageLikeEventContent.CallInvite
37332-
3 -> MessageLikeEventContent.CallNotify(
37333-
FfiConverterTypeNotifyType.read(buf),
37345+
3 -> MessageLikeEventContent.RtcNotification(
37346+
FfiConverterTypeRtcNotificationType.read(buf),
37347+
FfiConverterTypeTimestamp.read(buf),
3733437348
)
3733537349
4 -> MessageLikeEventContent.CallHangup
3733637350
5 -> MessageLikeEventContent.CallCandidates
@@ -37374,11 +37388,12 @@ public object FfiConverterTypeMessageLikeEventContent : FfiConverterRustBuffer<M
3737437388
4UL
3737537389
)
3737637390
}
37377-
is MessageLikeEventContent.CallNotify -> {
37391+
is MessageLikeEventContent.RtcNotification -> {
3737837392
// Add the size for the Int that specifies the variant plus the size needed for all fields
3737937393
(
3738037394
4UL
37381-
+ FfiConverterTypeNotifyType.allocationSize(value.`notifyType`)
37395+
+ FfiConverterTypeRtcNotificationType.allocationSize(value.`notificationType`)
37396+
+ FfiConverterTypeTimestamp.allocationSize(value.`expirationTs`)
3738237397
)
3738337398
}
3738437399
is MessageLikeEventContent.CallHangup -> {
@@ -37489,9 +37504,10 @@ public object FfiConverterTypeMessageLikeEventContent : FfiConverterRustBuffer<M
3748937504
buf.putInt(2)
3749037505
Unit
3749137506
}
37492-
is MessageLikeEventContent.CallNotify -> {
37507+
is MessageLikeEventContent.RtcNotification -> {
3749337508
buf.putInt(3)
37494-
FfiConverterTypeNotifyType.write(value.`notifyType`, buf)
37509+
FfiConverterTypeRtcNotificationType.write(value.`notificationType`, buf)
37510+
FfiConverterTypeTimestamp.write(value.`expirationTs`, buf)
3749537511
Unit
3749637512
}
3749737513
is MessageLikeEventContent.CallHangup -> {
@@ -37575,7 +37591,7 @@ enum class MessageLikeEventType {
3757537591
CALL_CANDIDATES,
3757637592
CALL_HANGUP,
3757737593
CALL_INVITE,
37578-
CALL_NOTIFY,
37594+
RTC_NOTIFICATION,
3757937595
KEY_VERIFICATION_ACCEPT,
3758037596
KEY_VERIFICATION_CANCEL,
3758137597
KEY_VERIFICATION_DONE,
@@ -38594,33 +38610,6 @@ public object FfiConverterTypeNotificationStatus : FfiConverterRustBuffer<Notifi
3859438610

3859538611

3859638612

38597-
enum class NotifyType {
38598-
38599-
RING,
38600-
NOTIFY;
38601-
companion object
38602-
}
38603-
38604-
38605-
public object FfiConverterTypeNotifyType: FfiConverterRustBuffer<NotifyType> {
38606-
override fun read(buf: ByteBuffer) = try {
38607-
NotifyType.values()[buf.getInt() - 1]
38608-
} catch (e: IndexOutOfBoundsException) {
38609-
throw RuntimeException("invalid enum value, something is very wrong!!", e)
38610-
}
38611-
38612-
override fun allocationSize(value: NotifyType) = 4UL
38613-
38614-
override fun write(value: NotifyType, buf: ByteBuffer) {
38615-
buf.putInt(value.ordinal + 1)
38616-
}
38617-
}
38618-
38619-
38620-
38621-
38622-
38623-
3862438613

3862538614
sealed class OidcException(message: String): kotlin.Exception(message) {
3862638615

@@ -42183,23 +42172,24 @@ public object FfiConverterTypeRoomVisibility : FfiConverterRustBuffer<RoomVisibi
4218342172

4218442173

4218542174

42186-
enum class RtcApplicationType {
42175+
enum class RtcNotificationType {
4218742176

42188-
CALL;
42177+
RING,
42178+
NOTIFICATION;
4218942179
companion object
4219042180
}
4219142181

4219242182

42193-
public object FfiConverterTypeRtcApplicationType: FfiConverterRustBuffer<RtcApplicationType> {
42183+
public object FfiConverterTypeRtcNotificationType: FfiConverterRustBuffer<RtcNotificationType> {
4219442184
override fun read(buf: ByteBuffer) = try {
42195-
RtcApplicationType.values()[buf.getInt() - 1]
42185+
RtcNotificationType.values()[buf.getInt() - 1]
4219642186
} catch (e: IndexOutOfBoundsException) {
4219742187
throw RuntimeException("invalid enum value, something is very wrong!!", e)
4219842188
}
4219942189

42200-
override fun allocationSize(value: RtcApplicationType) = 4UL
42190+
override fun allocationSize(value: RtcNotificationType) = 4UL
4220142191

42202-
override fun write(value: RtcApplicationType, buf: ByteBuffer) {
42192+
override fun write(value: RtcNotificationType, buf: ByteBuffer) {
4220342193
buf.putInt(value.ordinal + 1)
4220442194
}
4220542195
}
@@ -44153,7 +44143,7 @@ sealed class TimelineItemContent: Disposable {
4415344143
object CallInvite : TimelineItemContent()
4415444144

4415544145

44156-
object CallNotify : TimelineItemContent()
44146+
object RtcNotification : TimelineItemContent()
4415744147

4415844148

4415944149
data class RoomMembership(
@@ -44204,7 +44194,7 @@ sealed class TimelineItemContent: Disposable {
4420444194
}
4420544195
is TimelineItemContent.CallInvite -> {// Nothing to destroy
4420644196
}
44207-
is TimelineItemContent.CallNotify -> {// Nothing to destroy
44197+
is TimelineItemContent.RtcNotification -> {// Nothing to destroy
4420844198
}
4420944199
is TimelineItemContent.RoomMembership -> {
4421044200

@@ -44269,7 +44259,7 @@ public object FfiConverterTypeTimelineItemContent : FfiConverterRustBuffer<Timel
4426944259
FfiConverterTypeMsgLikeContent.read(buf),
4427044260
)
4427144261
2 -> TimelineItemContent.CallInvite
44272-
3 -> TimelineItemContent.CallNotify
44262+
3 -> TimelineItemContent.RtcNotification
4427344263
4 -> TimelineItemContent.RoomMembership(
4427444264
FfiConverterString.read(buf),
4427544265
FfiConverterOptionalString.read(buf),
@@ -44313,7 +44303,7 @@ public object FfiConverterTypeTimelineItemContent : FfiConverterRustBuffer<Timel
4431344303
4UL
4431444304
)
4431544305
}
44316-
is TimelineItemContent.CallNotify -> {
44306+
is TimelineItemContent.RtcNotification -> {
4431744307
// Add the size for the Int that specifies the variant plus the size needed for all fields
4431844308
(
4431944309
4UL
@@ -44377,7 +44367,7 @@ public object FfiConverterTypeTimelineItemContent : FfiConverterRustBuffer<Timel
4437744367
buf.putInt(2)
4437844368
Unit
4437944369
}
44380-
is TimelineItemContent.CallNotify -> {
44370+
is TimelineItemContent.RtcNotification -> {
4438144371
buf.putInt(3)
4438244372
Unit
4438344373
}

0 commit comments

Comments
 (0)