mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-21 20:45:29 +03:00
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
03c4402630
commit
3de36ebec3
2 changed files with 3 additions and 3 deletions
|
@ -104,7 +104,7 @@ class GuestAccessHelper(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun passwordObserver() {
|
private fun passwordObserver() {
|
||||||
viewModel.passwordViewState.observe(lifecycleOwner) { uiState ->
|
viewModel.passwordViewState.observe(lifecycleOwner) { uiState ->
|
||||||
when (uiState) {
|
when (uiState) {
|
||||||
is ConversationInfoViewModel.PasswordUiState.Success -> {
|
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 {
|
viewModelScope.launch {
|
||||||
try {
|
try {
|
||||||
val allowGuestsResult = conversationsRepository.allowGuests(token, allow)
|
val allowGuestsResult = conversationsRepository.allowGuests(token, allow)
|
||||||
|
@ -262,7 +262,7 @@ class ConversationInfoViewModel @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("SuspiciousIndentation")
|
@SuppressLint("SuspiciousIndentation")
|
||||||
fun setPassword(password: String, token: String) {
|
fun setPassword(password: String, token: String) {
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
try {
|
try {
|
||||||
val setPasswordResult = conversationsRepository.setPassword(password, token)
|
val setPasswordResult = conversationsRepository.setPassword(password, token)
|
||||||
|
|
Loading…
Reference in a new issue