fix: consist, use sealed interface instead of class

This commit is contained in:
Valere 2026-04-29 16:29:13 +02:00
parent 6154816796
commit 531d9b3d47

View file

@ -12,11 +12,11 @@ import io.element.android.libraries.matrix.api.notification.CallIntent
import io.element.android.libraries.matrix.api.timeline.item.event.EventType
// State of the call, for now only isDeclined but in the future could be missed, active.
sealed class RtcNotificationState {
sealed interface RtcNotificationState {
/** Some users have declined, byMe indicates if the current user is one of them. */
data class Declined(val byMe: Boolean) : RtcNotificationState()
data class Declined(val byMe: Boolean) : RtcNotificationState
object Started : RtcNotificationState()
object Started : RtcNotificationState
}
class TimelineItemRtcNotificationContent(