Merge pull request #2417 from element-hq/renovate/org.matrix.rustcomponents-sdk-android-0.x
Update dependency org.matrix.rustcomponents:sdk-android to v0.2.3
This commit is contained in:
@@ -152,7 +152,7 @@ jsoup = "org.jsoup:jsoup:1.17.2"
|
||||
appyx_core = { module = "com.bumble.appyx:core", version.ref = "appyx" }
|
||||
molecule-runtime = "app.cash.molecule:molecule-runtime:1.3.2"
|
||||
timber = "com.jakewharton.timber:timber:5.0.1"
|
||||
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.2.2"
|
||||
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.2.3"
|
||||
matrix_richtexteditor = { module = "io.element.android:wysiwyg", version.ref = "wysiwyg" }
|
||||
matrix_richtexteditor_compose = { module = "io.element.android:wysiwyg-compose", version.ref = "wysiwyg" }
|
||||
sqldelight-driver-android = { module = "app.cash.sqldelight:android-driver", version.ref = "sqldelight" }
|
||||
|
||||
@@ -170,7 +170,7 @@ class StateContentFormatter @Inject constructor(
|
||||
"RoomPinnedEvents"
|
||||
}
|
||||
}
|
||||
OtherState.RoomPowerLevels -> when (renderingMode) {
|
||||
is OtherState.RoomPowerLevels -> when (renderingMode) {
|
||||
RenderingMode.RoomList -> {
|
||||
Timber.v("Filtering timeline item for room state change: $content")
|
||||
null
|
||||
|
||||
@@ -641,9 +641,21 @@ class DefaultRoomLastMessageFormatterTest {
|
||||
@Config(qualifiers = "en")
|
||||
fun `Room state change - others must return null`() {
|
||||
val otherStates = arrayOf(
|
||||
OtherState.PolicyRuleRoom, OtherState.PolicyRuleServer, OtherState.PolicyRuleUser, OtherState.RoomAliases, OtherState.RoomCanonicalAlias,
|
||||
OtherState.RoomGuestAccess, OtherState.RoomHistoryVisibility, OtherState.RoomJoinRules, OtherState.RoomPinnedEvents, OtherState.RoomPowerLevels,
|
||||
OtherState.RoomServerAcl, OtherState.RoomTombstone, OtherState.SpaceChild, OtherState.SpaceParent, OtherState.Custom("custom_event_type")
|
||||
OtherState.PolicyRuleRoom,
|
||||
OtherState.PolicyRuleServer,
|
||||
OtherState.PolicyRuleUser,
|
||||
OtherState.RoomAliases,
|
||||
OtherState.RoomCanonicalAlias,
|
||||
OtherState.RoomGuestAccess,
|
||||
OtherState.RoomHistoryVisibility,
|
||||
OtherState.RoomJoinRules,
|
||||
OtherState.RoomPinnedEvents,
|
||||
OtherState.RoomPowerLevels(emptyMap()),
|
||||
OtherState.RoomServerAcl,
|
||||
OtherState.RoomTombstone,
|
||||
OtherState.SpaceChild,
|
||||
OtherState.SpaceParent,
|
||||
OtherState.Custom("custom_event_type")
|
||||
)
|
||||
|
||||
val results = otherStates.map { state ->
|
||||
|
||||
@@ -33,7 +33,7 @@ sealed interface OtherState {
|
||||
data object RoomJoinRules : OtherState
|
||||
data class RoomName(val name: String?) : OtherState
|
||||
data object RoomPinnedEvents : OtherState
|
||||
data object RoomPowerLevels : OtherState
|
||||
data class RoomPowerLevels(val users: Map<String, Long>) : OtherState
|
||||
data object RoomServerAcl : OtherState
|
||||
data class RoomThirdPartyInvite(val displayName: String?) : OtherState
|
||||
data object RoomTombstone : OtherState
|
||||
|
||||
@@ -65,6 +65,7 @@ class RustMatrixAuthenticationService @Inject constructor(
|
||||
basePath = baseDirectory.absolutePath,
|
||||
passphrase = pendingPassphrase,
|
||||
userAgent = userAgentProvider.provide(),
|
||||
additionalRootCertificates = emptyList(),
|
||||
oidcConfiguration = oidcConfiguration,
|
||||
customSlidingSyncProxy = null,
|
||||
sessionDelegate = null,
|
||||
|
||||
@@ -163,7 +163,7 @@ private fun RustOtherState.map(): OtherState {
|
||||
RustOtherState.RoomJoinRules -> OtherState.RoomJoinRules
|
||||
is RustOtherState.RoomName -> OtherState.RoomName(name)
|
||||
RustOtherState.RoomPinnedEvents -> OtherState.RoomPinnedEvents
|
||||
RustOtherState.RoomPowerLevels -> OtherState.RoomPowerLevels
|
||||
is RustOtherState.RoomPowerLevels -> OtherState.RoomPowerLevels(users)
|
||||
RustOtherState.RoomServerAcl -> OtherState.RoomServerAcl
|
||||
is RustOtherState.RoomThirdPartyInvite -> OtherState.RoomThirdPartyInvite(displayName)
|
||||
RustOtherState.RoomTombstone -> OtherState.RoomTombstone
|
||||
|
||||
Reference in New Issue
Block a user