Cleanup codebase
This commit is contained in:
parent
6a050569f5
commit
f3425c3388
20 changed files with 28 additions and 48 deletions
|
|
@ -10,7 +10,7 @@ package io.element.android.features.invitepeople.impl
|
|||
import io.element.android.features.invitepeople.api.InvitePeopleEvents
|
||||
import io.element.android.libraries.matrix.api.user.MatrixUser
|
||||
|
||||
sealed interface DefaultInvitePeopleEvents: InvitePeopleEvents {
|
||||
sealed interface DefaultInvitePeopleEvents : InvitePeopleEvents {
|
||||
data class ToggleUser(val user: MatrixUser) : DefaultInvitePeopleEvents
|
||||
data class UpdateSearchQuery(val query: String) : DefaultInvitePeopleEvents
|
||||
data class OnSearchActiveChanged(val active: Boolean) : DefaultInvitePeopleEvents
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ class DefaultInvitePeoplePresenter @AssistedInject constructor(
|
|||
@AppCoroutineScope private val coroutineScope: CoroutineScope,
|
||||
private val appErrorStateService: AppErrorStateService,
|
||||
) : InvitePeoplePresenter {
|
||||
|
||||
@AssistedFactory
|
||||
@ContributesBinding(SessionScope::class)
|
||||
interface Factory : InvitePeoplePresenter.Factory {
|
||||
|
|
|
|||
|
|
@ -21,4 +21,4 @@ data class DefaultInvitePeopleState(
|
|||
val selectedUsers: ImmutableList<MatrixUser>,
|
||||
override val isSearchActive: Boolean,
|
||||
override val eventSink: (InvitePeopleEvents) -> Unit
|
||||
): InvitePeopleState
|
||||
) : InvitePeopleState
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@ fun InvitePeopleView(
|
|||
state: DefaultInvitePeopleState,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
|
||||
Column(
|
||||
modifier = modifier.fillMaxWidth(),
|
||||
verticalArrangement = Arrangement.spacedBy(16.dp),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue