Move room admin condition to be usable in UnitTests and add tests

This commit is contained in:
aringenbach
2023-04-20 16:43:36 +02:00
parent a3f7d0433a
commit 0171e64638
5 changed files with 144 additions and 22 deletions
@@ -34,13 +34,13 @@ struct CompletionSuggestionListWithInput: View {
var body: some View {
VStack(spacing: 0.0) {
CompletionSuggestionList(viewModel: viewModel.listViewModel.context)
TextField("Search for user", text: $inputText)
TextField("Search for user/command", text: $inputText)
.background(Color.white)
.onChange(of: inputText, perform: viewModel.callback)
.textFieldStyle(RoundedBorderTextFieldStyle())
.padding([.leading, .trailing])
.onAppear {
inputText = "@-" // Make the list show all available mock results
inputText = "@-" // Make the list show all available user mock results
}
}
}