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