change (sdk) : add topic string to NotificationContent.StateEvent.RoomTopic
This commit is contained in:
parent
902934229c
commit
f5c3c91299
4 changed files with 4 additions and 4 deletions
|
|
@ -106,7 +106,7 @@ sealed interface NotificationContent {
|
||||||
data object RoomServerAcl : StateEvent
|
data object RoomServerAcl : StateEvent
|
||||||
data object RoomThirdPartyInvite : StateEvent
|
data object RoomThirdPartyInvite : StateEvent
|
||||||
data object RoomTombstone : StateEvent
|
data object RoomTombstone : StateEvent
|
||||||
data object RoomTopic : StateEvent
|
data class RoomTopic(val topic: String) : StateEvent
|
||||||
data object SpaceChild : StateEvent
|
data object SpaceChild : StateEvent
|
||||||
data object SpaceParent : StateEvent
|
data object SpaceParent : StateEvent
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ private fun StateEventContent.toContent(): NotificationContent.StateEvent {
|
||||||
StateEventContent.RoomServerAcl -> NotificationContent.StateEvent.RoomServerAcl
|
StateEventContent.RoomServerAcl -> NotificationContent.StateEvent.RoomServerAcl
|
||||||
StateEventContent.RoomThirdPartyInvite -> NotificationContent.StateEvent.RoomThirdPartyInvite
|
StateEventContent.RoomThirdPartyInvite -> NotificationContent.StateEvent.RoomThirdPartyInvite
|
||||||
StateEventContent.RoomTombstone -> NotificationContent.StateEvent.RoomTombstone
|
StateEventContent.RoomTombstone -> NotificationContent.StateEvent.RoomTombstone
|
||||||
StateEventContent.RoomTopic -> NotificationContent.StateEvent.RoomTopic
|
is StateEventContent.RoomTopic -> NotificationContent.StateEvent.RoomTopic(topic)
|
||||||
StateEventContent.SpaceChild -> NotificationContent.StateEvent.SpaceChild
|
StateEventContent.SpaceChild -> NotificationContent.StateEvent.SpaceChild
|
||||||
StateEventContent.SpaceParent -> NotificationContent.StateEvent.SpaceParent
|
StateEventContent.SpaceParent -> NotificationContent.StateEvent.SpaceParent
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,7 @@ class DefaultNotifiableEventResolver @Inject constructor(
|
||||||
NotificationContent.StateEvent.RoomServerAcl,
|
NotificationContent.StateEvent.RoomServerAcl,
|
||||||
NotificationContent.StateEvent.RoomThirdPartyInvite,
|
NotificationContent.StateEvent.RoomThirdPartyInvite,
|
||||||
NotificationContent.StateEvent.RoomTombstone,
|
NotificationContent.StateEvent.RoomTombstone,
|
||||||
NotificationContent.StateEvent.RoomTopic,
|
is NotificationContent.StateEvent.RoomTopic,
|
||||||
NotificationContent.StateEvent.SpaceChild,
|
NotificationContent.StateEvent.SpaceChild,
|
||||||
NotificationContent.StateEvent.SpaceParent -> {
|
NotificationContent.StateEvent.SpaceParent -> {
|
||||||
Timber.tag(loggerTag.value).d("Ignoring notification for state event ${content.javaClass.simpleName}")
|
Timber.tag(loggerTag.value).d("Ignoring notification for state event ${content.javaClass.simpleName}")
|
||||||
|
|
|
||||||
|
|
@ -783,7 +783,7 @@ class DefaultNotifiableEventResolverTest {
|
||||||
testFailure(NotificationContent.StateEvent.RoomServerAcl)
|
testFailure(NotificationContent.StateEvent.RoomServerAcl)
|
||||||
testFailure(NotificationContent.StateEvent.RoomThirdPartyInvite)
|
testFailure(NotificationContent.StateEvent.RoomThirdPartyInvite)
|
||||||
testFailure(NotificationContent.StateEvent.RoomTombstone)
|
testFailure(NotificationContent.StateEvent.RoomTombstone)
|
||||||
testFailure(NotificationContent.StateEvent.RoomTopic)
|
testFailure(NotificationContent.StateEvent.RoomTopic(""))
|
||||||
testFailure(NotificationContent.StateEvent.SpaceChild)
|
testFailure(NotificationContent.StateEvent.SpaceChild)
|
||||||
testFailure(NotificationContent.StateEvent.SpaceParent)
|
testFailure(NotificationContent.StateEvent.SpaceParent)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue