migrate object to data object (#1135)
This commit is contained in:
parent
4218a836d5
commit
7083abcf09
98 changed files with 314 additions and 357 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue