We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8978486 commit ec0d563Copy full SHA for ec0d563
1 file changed
app/src/main/java/com/nextcloud/client/assistant/AssistantViewModel.kt
@@ -251,11 +251,7 @@ class AssistantViewModel(
251
}
252
253
254
- private suspend fun pollTranslationResult(
255
- taskType: TaskTypeData,
256
- selectedTaskId: Long,
257
- maxRetries: Int = 3,
258
- ) {
+ private suspend fun pollTranslationResult(taskType: TaskTypeData, selectedTaskId: Long, maxRetries: Int = 3) {
259
val taskTypeId = taskType.id ?: return
260
261
repeat(maxRetries) { attempt ->
@@ -283,7 +279,6 @@ class AssistantViewModel(
283
279
284
280
// endregion
285
281
286
-
287
282
// region chat
288
fun sendChatMessage(content: String, sessionId: Long) = viewModelScope.launch(Dispatchers.IO) {
289
val request = ChatMessageRequest(
0 commit comments