mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Temporary implem for sdk changes on beacon
This commit is contained in:
+6
@@ -89,6 +89,9 @@ sealed interface NotificationContent {
|
|||||||
val senderId: UserId,
|
val senderId: UserId,
|
||||||
val question: String,
|
val question: String,
|
||||||
) : MessageLike
|
) : MessageLike
|
||||||
|
|
||||||
|
// TODO put real implementation
|
||||||
|
data object Beacon : MessageLike
|
||||||
}
|
}
|
||||||
|
|
||||||
sealed interface StateEvent : NotificationContent {
|
sealed interface StateEvent : NotificationContent {
|
||||||
@@ -116,6 +119,9 @@ sealed interface NotificationContent {
|
|||||||
data class RoomTopic(val topic: String) : StateEvent
|
data class RoomTopic(val topic: String) : StateEvent
|
||||||
data object SpaceChild : StateEvent
|
data object SpaceChild : StateEvent
|
||||||
data object SpaceParent : StateEvent
|
data object SpaceParent : StateEvent
|
||||||
|
|
||||||
|
// TODO put real implementation
|
||||||
|
data object Beacon : StateEvent
|
||||||
}
|
}
|
||||||
|
|
||||||
data class Invite(
|
data class Invite(
|
||||||
|
|||||||
+2
@@ -71,6 +71,7 @@ private fun StateEventContent.toContent(): NotificationContent.StateEvent {
|
|||||||
is StateEventContent.RoomTopic -> NotificationContent.StateEvent.RoomTopic(topic)
|
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
|
||||||
|
StateEventContent.BeaconInfo -> NotificationContent.StateEvent.Beacon
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,6 +109,7 @@ private fun MessageLikeEventContent.toContent(senderId: UserId): NotificationCon
|
|||||||
)
|
)
|
||||||
MessageLikeEventContent.Sticker -> NotificationContent.MessageLike.Sticker
|
MessageLikeEventContent.Sticker -> NotificationContent.MessageLike.Sticker
|
||||||
is MessageLikeEventContent.Poll -> NotificationContent.MessageLike.Poll(senderId, question)
|
is MessageLikeEventContent.Poll -> NotificationContent.MessageLike.Poll(senderId, question)
|
||||||
|
MessageLikeEventContent.Beacon -> NotificationContent.MessageLike.Beacon
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user