mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-16 17:25:01 +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)
|
repository.openConversation(token, scope)
|
||||||
onRoomCreated(token)
|
onRoomCreated(token)
|
||||||
} catch (exception: Exception) {
|
} catch (exception: Exception) {
|
||||||
@ -134,6 +136,7 @@ class ConversationCreationViewModel @Inject constructor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sealed class AllowGuestsUiState {
|
sealed class AllowGuestsUiState {
|
||||||
data object None : AllowGuestsUiState()
|
data object None : AllowGuestsUiState()
|
||||||
data class Success(val result: Boolean) : AllowGuestsUiState()
|
data class Success(val result: Boolean) : AllowGuestsUiState()
|
||||||
|
Loading…
Reference in New Issue
Block a user