mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
rename variable selectedImageUri
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
384ba6945f
commit
8bf9e3552e
@ -138,7 +138,7 @@ fun ConversationCreationScreen(
|
|||||||
context: Context,
|
context: Context,
|
||||||
pickImage: PickImage
|
pickImage: PickImage
|
||||||
) {
|
) {
|
||||||
val selectedImageUri = conversationCreationViewModel.selectedImageUriState.collectAsState().value
|
val selectedImageUri = conversationCreationViewModel.selectedImageUri.collectAsState().value
|
||||||
|
|
||||||
val imagePickerLauncher = rememberLauncherForActivityResult(
|
val imagePickerLauncher = rememberLauncherForActivityResult(
|
||||||
contract = ActivityResultContracts.StartActivityForResult()
|
contract = ActivityResultContracts.StartActivityForResult()
|
||||||
|
@ -32,8 +32,8 @@ class ConversationCreationViewModel @Inject constructor(
|
|||||||
val selectedParticipants: StateFlow<List<AutocompleteUser>> = _selectedParticipants
|
val selectedParticipants: StateFlow<List<AutocompleteUser>> = _selectedParticipants
|
||||||
private val roomViewState = MutableStateFlow<RoomUIState>(RoomUIState.None)
|
private val roomViewState = MutableStateFlow<RoomUIState>(RoomUIState.None)
|
||||||
|
|
||||||
private val selectedImageUri = MutableStateFlow<Uri?>(null)
|
private val _selectedImageUri = MutableStateFlow<Uri?>(null)
|
||||||
val selectedImageUriState: StateFlow<Uri?> = selectedImageUri
|
val selectedImageUri: StateFlow<Uri?> = _selectedImageUri
|
||||||
|
|
||||||
private val _currentUser = userManager.currentUser.blockingGet()
|
private val _currentUser = userManager.currentUser.blockingGet()
|
||||||
val currentUser: User = _currentUser
|
val currentUser: User = _currentUser
|
||||||
@ -43,7 +43,7 @@ class ConversationCreationViewModel @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun updateSelectedImageUri(uri: Uri?) {
|
fun updateSelectedImageUri(uri: Uri?) {
|
||||||
selectedImageUri.value = uri
|
_selectedImageUri.value = uri
|
||||||
}
|
}
|
||||||
|
|
||||||
private val _roomName = MutableStateFlow("")
|
private val _roomName = MutableStateFlow("")
|
||||||
|
Loading…
Reference in New Issue
Block a user