mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:05:28 +00:00
change (sdk) : add topic string to NotificationContent.StateEvent.RoomTopic
This commit is contained in:
+1
-1
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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}")
|
||||||
|
|||||||
+1
-1
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user