fixing import keys not closing due to wrong callback being triggered

This commit is contained in:
Adam Brown 2022-03-17 20:37:01 +00:00
parent 38c9e33a59
commit 509667f595

View File

@ -199,9 +199,7 @@ private fun RootSettings(page: Page.Root, onClick: (SettingItem) -> Unit) {
@Composable
private fun Encryption(viewModel: SettingsViewModel, page: Page.Security) {
Column {
TextRow("Import room keys", includeDivider = false) {
viewModel.goToImportRoom()
}
TextRow("Import room keys", includeDivider = false, onClick = { viewModel.goToImportRoom() })
}
}