mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 11:39:42 +01:00
remove unused code
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
d4959d9130
commit
3dfb00d5c4
@ -142,23 +142,6 @@ class ConversationCreationViewModel @Inject constructor(
|
|||||||
fun getImageUri(avatarId: String, requestBigSize: Boolean): String {
|
fun getImageUri(avatarId: String, requestBigSize: Boolean): String {
|
||||||
return repository.getImageUri(avatarId, requestBigSize)
|
return repository.getImageUri(avatarId, requestBigSize)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("Detekt.TooGenericExceptionCaught")
|
|
||||||
fun createRoom(roomType: String, conversationName: String?) {
|
|
||||||
viewModelScope.launch {
|
|
||||||
try {
|
|
||||||
val room = repository.createRoom(
|
|
||||||
roomType,
|
|
||||||
conversationName
|
|
||||||
)
|
|
||||||
|
|
||||||
val conversation: Conversation? = room.ocs?.data
|
|
||||||
roomViewState.value = RoomUIState.Success(conversation)
|
|
||||||
} catch (exception: Exception) {
|
|
||||||
roomViewState.value = RoomUIState.Error(exception.message ?: "")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sealed class AllowGuestsUiState {
|
sealed class AllowGuestsUiState {
|
||||||
|
Loading…
Reference in New Issue
Block a user