rename variable selectedImageUri

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2024-09-20 16:07:43 +02:00 committed by Marcel Hibbe
parent 384ba6945f
commit 8bf9e3552e
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B
2 changed files with 4 additions and 4 deletions

View file

@ -138,7 +138,7 @@ fun ConversationCreationScreen(
context: Context,
pickImage: PickImage
) {
val selectedImageUri = conversationCreationViewModel.selectedImageUriState.collectAsState().value
val selectedImageUri = conversationCreationViewModel.selectedImageUri.collectAsState().value
val imagePickerLauncher = rememberLauncherForActivityResult(
contract = ActivityResultContracts.StartActivityForResult()

View file

@ -32,8 +32,8 @@ class ConversationCreationViewModel @Inject constructor(
val selectedParticipants: StateFlow<List<AutocompleteUser>> = _selectedParticipants
private val roomViewState = MutableStateFlow<RoomUIState>(RoomUIState.None)
private val selectedImageUri = MutableStateFlow<Uri?>(null)
val selectedImageUriState: StateFlow<Uri?> = selectedImageUri
private val _selectedImageUri = MutableStateFlow<Uri?>(null)
val selectedImageUri: StateFlow<Uri?> = _selectedImageUri
private val _currentUser = userManager.currentUser.blockingGet()
val currentUser: User = _currentUser
@ -43,7 +43,7 @@ class ConversationCreationViewModel @Inject constructor(
}
fun updateSelectedImageUri(uri: Uri?) {
selectedImageUri.value = uri
_selectedImageUri.value = uri
}
private val _roomName = MutableStateFlow("")