migrate object to data object (#1135)
This commit is contained in:
@@ -17,13 +17,11 @@
|
||||
package io.element.android.services.apperror.api
|
||||
|
||||
sealed interface AppErrorState {
|
||||
|
||||
object NoError : AppErrorState
|
||||
data object NoError : AppErrorState
|
||||
|
||||
data class Error(
|
||||
val title: String,
|
||||
val body: String,
|
||||
val dismiss: () -> Unit,
|
||||
) : AppErrorState
|
||||
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ import io.element.android.libraries.matrix.api.core.ThreadId
|
||||
* So we assume if we don't get the same owner, we can skip the onLeaving action as we already replaced it.
|
||||
*/
|
||||
sealed class NavigationState(open val owner: String) {
|
||||
object Root : NavigationState("ROOT")
|
||||
data object Root : NavigationState("ROOT")
|
||||
|
||||
data class Session(
|
||||
override val owner: String,
|
||||
|
||||
Reference in New Issue
Block a user