don't create room on clicking contacts when creating a new conversation

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2024-08-08 23:57:29 +02:00 committed by Marcel Hibbe
parent 9f61793c86
commit b5f7556b3d
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -111,12 +111,14 @@ fun ContactItemRow(contact: AutocompleteUser, contactsViewModel: ContactsViewMod
modifier = Modifier
.fillMaxWidth()
.clickable {
contactsViewModel.createRoom(
CompanionClass.ROOM_TYPE_ONE_ONE,
contact.source!!,
contact.id!!,
null
)
if (!contactsViewModel.isAddParticipantsView.value) {
contactsViewModel.createRoom(
CompanionClass.ROOM_TYPE_ONE_ONE,
contact.source!!,
contact.id!!,
null
)
}
},
verticalAlignment = Alignment.CenterVertically
) {