mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-14 00:05:04 +01:00
only set password if not empty
otherwise response will be 400 Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
ecb3d5380c
commit
8d1d44692e
@ -96,7 +96,9 @@ class ConversationCreationViewModel @Inject constructor(
|
||||
}
|
||||
}
|
||||
}
|
||||
repository.setPassword(token, _password.value)
|
||||
if (_password.value.isNotEmpty()) {
|
||||
repository.setPassword(token, _password.value)
|
||||
}
|
||||
repository.openConversation(token, scope)
|
||||
onRoomCreated(token)
|
||||
} catch (exception: Exception) {
|
||||
@ -134,6 +136,7 @@ class ConversationCreationViewModel @Inject constructor(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sealed class AllowGuestsUiState {
|
||||
data object None : AllowGuestsUiState()
|
||||
data class Success(val result: Boolean) : AllowGuestsUiState()
|
||||
|
Loading…
Reference in New Issue
Block a user