refactor (start chat) : create invite people module and start branching them
This commit is contained in:
parent
1170a44116
commit
50073389c4
21 changed files with 717 additions and 32 deletions
|
|
@ -5,7 +5,7 @@
|
|||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
plugins {
|
||||
id("io.element.android-library")
|
||||
id("io.element.android-compose-library")
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.invitepeople.api
|
||||
|
||||
interface InvitePeopleEvents {
|
||||
data object SendInvites : InvitePeopleEvents
|
||||
}
|
||||
|
|
@ -7,9 +7,13 @@
|
|||
|
||||
package io.element.android.features.invitepeople.api
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
import io.element.android.libraries.architecture.Presenter
|
||||
import io.element.android.libraries.matrix.api.room.JoinedRoom
|
||||
|
||||
interface InvitePeoplePresenter : Presenter<InvitePeopleState> {
|
||||
|
||||
interface Factory {
|
||||
fun create(room: JoinedRoom): InvitePeoplePresenter
|
||||
}
|
||||
|
||||
interface InvitePeoplePresenter {
|
||||
@Composable
|
||||
fun present(): InvitePeopleState
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,5 +12,8 @@ import androidx.compose.ui.Modifier
|
|||
|
||||
interface InvitePeopleRenderer {
|
||||
@Composable
|
||||
fun Render(state: InvitePeopleState, modifier: Modifier)
|
||||
fun Render(
|
||||
state: InvitePeopleState,
|
||||
modifier: Modifier,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,4 +7,6 @@
|
|||
|
||||
package io.element.android.features.invitepeople.api
|
||||
|
||||
interface InvitePeopleState
|
||||
interface InvitePeopleState {
|
||||
val eventSink: (InvitePeopleEvents) -> Unit
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue