ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
Родитель
03c4402630
Коммит
3de36ebec3
|
@ -104,7 +104,7 @@ class GuestAccessHelper(
|
|||
}
|
||||
}
|
||||
|
||||
private fun passwordObserver() {
|
||||
private fun passwordObserver() {
|
||||
viewModel.passwordViewState.observe(lifecycleOwner) { uiState ->
|
||||
when (uiState) {
|
||||
is ConversationInfoViewModel.PasswordUiState.Success -> {
|
||||
|
|
|
@ -246,7 +246,7 @@ class ConversationInfoViewModel @Inject constructor(
|
|||
})
|
||||
}
|
||||
|
||||
fun allowGuests(token: String, allow: Boolean) {
|
||||
fun allowGuests(token: String, allow: Boolean) {
|
||||
viewModelScope.launch {
|
||||
try {
|
||||
val allowGuestsResult = conversationsRepository.allowGuests(token, allow)
|
||||
|
@ -262,7 +262,7 @@ class ConversationInfoViewModel @Inject constructor(
|
|||
}
|
||||
|
||||
@SuppressLint("SuspiciousIndentation")
|
||||
fun setPassword(password: String, token: String) {
|
||||
fun setPassword(password: String, token: String) {
|
||||
viewModelScope.launch {
|
||||
try {
|
||||
val setPasswordResult = conversationsRepository.setPassword(password, token)
|
||||
|
|
Загрузка…
Ссылка в новой задаче