rust sdk : fix api changes

This commit is contained in:
ganfra 2024-02-19 21:35:31 +01:00
parent 643e2c4f94
commit 2934682e57
4 changed files with 4 additions and 3 deletions

View file

@ -170,7 +170,7 @@ class StateContentFormatter @Inject constructor(
"RoomPinnedEvents" "RoomPinnedEvents"
} }
} }
OtherState.RoomPowerLevels -> when (renderingMode) { is OtherState.RoomPowerLevels -> when (renderingMode) {
RenderingMode.RoomList -> { RenderingMode.RoomList -> {
Timber.v("Filtering timeline item for room state change: $content") Timber.v("Filtering timeline item for room state change: $content")
null null

View file

@ -33,7 +33,7 @@ sealed interface OtherState {
data object RoomJoinRules : OtherState data object RoomJoinRules : OtherState
data class RoomName(val name: String?) : OtherState data class RoomName(val name: String?) : OtherState
data object RoomPinnedEvents : OtherState data object RoomPinnedEvents : OtherState
data object RoomPowerLevels : OtherState data class RoomPowerLevels(val users: Map<String, Long>) : OtherState
data object RoomServerAcl : OtherState data object RoomServerAcl : OtherState
data class RoomThirdPartyInvite(val displayName: String?) : OtherState data class RoomThirdPartyInvite(val displayName: String?) : OtherState
data object RoomTombstone : OtherState data object RoomTombstone : OtherState

View file

@ -65,6 +65,7 @@ class RustMatrixAuthenticationService @Inject constructor(
basePath = baseDirectory.absolutePath, basePath = baseDirectory.absolutePath,
passphrase = pendingPassphrase, passphrase = pendingPassphrase,
userAgent = userAgentProvider.provide(), userAgent = userAgentProvider.provide(),
additionalRootCertificates = emptyList(),
oidcConfiguration = oidcConfiguration, oidcConfiguration = oidcConfiguration,
customSlidingSyncProxy = null, customSlidingSyncProxy = null,
sessionDelegate = null, sessionDelegate = null,

View file

@ -163,7 +163,7 @@ private fun RustOtherState.map(): OtherState {
RustOtherState.RoomJoinRules -> OtherState.RoomJoinRules RustOtherState.RoomJoinRules -> OtherState.RoomJoinRules
is RustOtherState.RoomName -> OtherState.RoomName(name) is RustOtherState.RoomName -> OtherState.RoomName(name)
RustOtherState.RoomPinnedEvents -> OtherState.RoomPinnedEvents RustOtherState.RoomPinnedEvents -> OtherState.RoomPinnedEvents
RustOtherState.RoomPowerLevels -> OtherState.RoomPowerLevels is RustOtherState.RoomPowerLevels -> OtherState.RoomPowerLevels(users)
RustOtherState.RoomServerAcl -> OtherState.RoomServerAcl RustOtherState.RoomServerAcl -> OtherState.RoomServerAcl
is RustOtherState.RoomThirdPartyInvite -> OtherState.RoomThirdPartyInvite(displayName) is RustOtherState.RoomThirdPartyInvite -> OtherState.RoomThirdPartyInvite(displayName)
RustOtherState.RoomTombstone -> OtherState.RoomTombstone RustOtherState.RoomTombstone -> OtherState.RoomTombstone