rust sdk : fix api changes
This commit is contained in:
parent
643e2c4f94
commit
2934682e57
4 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue