Skip to content

Commit 566457a

Browse files
authored
Merge pull request #4622 from element-hq/renovate/org.matrix.rustcomponents-sdk-android-25.x
fix(deps): update dependency org.matrix.rustcomponents:sdk-android to v25.4.22
2 parents 4b9c9cc + baafa24 commit 566457a

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jsoup = "org.jsoup:jsoup:1.19.1"
169169
appyx_core = { module = "com.bumble.appyx:core", version.ref = "appyx" }
170170
molecule-runtime = "app.cash.molecule:molecule-runtime:2.1.0"
171171
timber = "com.jakewharton.timber:timber:5.0.1"
172-
matrix_sdk = "org.matrix.rustcomponents:sdk-android:25.4.11"
172+
matrix_sdk = "org.matrix.rustcomponents:sdk-android:25.4.22"
173173
matrix_richtexteditor = { module = "io.element.android:wysiwyg", version.ref = "wysiwyg" }
174174
matrix_richtexteditor_compose = { module = "io.element.android:wysiwyg-compose", version.ref = "wysiwyg" }
175175
sqldelight-driver-android = { module = "app.cash.sqldelight:android-driver", version.ref = "sqldelight" }

libraries/matrix/api/src/main/kotlin/io/element/android/libraries/matrix/api/notification/NotificationData.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ sealed interface NotificationContent {
106106
data object RoomServerAcl : StateEvent
107107
data object RoomThirdPartyInvite : StateEvent
108108
data object RoomTombstone : StateEvent
109-
data object RoomTopic : StateEvent
109+
data class RoomTopic(val topic: String) : StateEvent
110110
data object SpaceChild : StateEvent
111111
data object SpaceParent : StateEvent
112112
}

libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/notification/TimelineEventToNotificationContentMapper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private fun StateEventContent.toContent(): NotificationContent.StateEvent {
6262
StateEventContent.RoomServerAcl -> NotificationContent.StateEvent.RoomServerAcl
6363
StateEventContent.RoomThirdPartyInvite -> NotificationContent.StateEvent.RoomThirdPartyInvite
6464
StateEventContent.RoomTombstone -> NotificationContent.StateEvent.RoomTombstone
65-
StateEventContent.RoomTopic -> NotificationContent.StateEvent.RoomTopic
65+
is StateEventContent.RoomTopic -> NotificationContent.StateEvent.RoomTopic(topic)
6666
StateEventContent.SpaceChild -> NotificationContent.StateEvent.SpaceChild
6767
StateEventContent.SpaceParent -> NotificationContent.StateEvent.SpaceParent
6868
}

libraries/matrix/impl/src/test/kotlin/io/element/android/libraries/matrix/impl/fixtures/factories/EventTimelineItemContent.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ fun aRustTimelineItemMessageContent(body: String = "Hello") = TimelineItemConten
2727
reactions = emptyList(),
2828
threadRoot = null,
2929
inReplyTo = null,
30+
threadSummary = null,
3031
),
3132
)

libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/notifications/DefaultNotifiableEventResolver.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ class DefaultNotifiableEventResolver @Inject constructor(
251251
NotificationContent.StateEvent.RoomServerAcl,
252252
NotificationContent.StateEvent.RoomThirdPartyInvite,
253253
NotificationContent.StateEvent.RoomTombstone,
254-
NotificationContent.StateEvent.RoomTopic,
254+
is NotificationContent.StateEvent.RoomTopic,
255255
NotificationContent.StateEvent.SpaceChild,
256256
NotificationContent.StateEvent.SpaceParent -> {
257257
Timber.tag(loggerTag.value).d("Ignoring notification for state event ${content.javaClass.simpleName}")

libraries/push/impl/src/test/kotlin/io/element/android/libraries/push/impl/notifications/DefaultNotifiableEventResolverTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ class DefaultNotifiableEventResolverTest {
783783
testFailure(NotificationContent.StateEvent.RoomServerAcl)
784784
testFailure(NotificationContent.StateEvent.RoomThirdPartyInvite)
785785
testFailure(NotificationContent.StateEvent.RoomTombstone)
786-
testFailure(NotificationContent.StateEvent.RoomTopic)
786+
testFailure(NotificationContent.StateEvent.RoomTopic(""))
787787
testFailure(NotificationContent.StateEvent.SpaceChild)
788788
testFailure(NotificationContent.StateEvent.SpaceParent)
789789
}

0 commit comments

Comments
 (0)