mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 04:55:29 +03:00
rename variable selectedImageUri
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
384ba6945f
commit
8bf9e3552e
2 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||
|
|
|
@ -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("")
|
||||
|
|
Loading…
Reference in a new issue