Unplug DM creation
This commit is contained in:
parent
40b0591478
commit
2a1da1d405
1 changed files with 9 additions and 1 deletions
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
package io.element.android.features.createroom.impl.root
|
||||
|
||||
import android.widget.Toast
|
||||
import androidx.annotation.DrawableRes
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
|
|
@ -32,6 +33,7 @@ import androidx.compose.runtime.LaunchedEffect
|
|||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.alpha
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
|
|
@ -81,10 +83,16 @@ fun CreateRoomRootView(
|
|||
modifier = Modifier.padding(paddingValues),
|
||||
verticalArrangement = Arrangement.spacedBy(8.dp),
|
||||
) {
|
||||
val context = LocalContext.current
|
||||
SelectUsersView(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
state = state.selectUsersState,
|
||||
onUserSelected = { state.eventSink(CreateRoomRootEvents.StartDM(it)) },
|
||||
onUserSelected = {
|
||||
// Fixme disabled DM creation since it can break the account data which is not correctly synced
|
||||
// uncomment to enable it again or move behind a feature flag
|
||||
Toast.makeText(context, "Create DM feature is disabled.", Toast.LENGTH_SHORT).show()
|
||||
// state.eventSink(CreateRoomRootEvents.StartDM(it))
|
||||
},
|
||||
)
|
||||
|
||||
if (!state.selectUsersState.isSearchActive) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue