chore: upgrade ktlint to 1.8.0 and format codebase (#1024)
Co-authored-by: M57 <hy4ri@users.noreply.github.com>
This commit is contained in:
1 parent
3f3b853758
commit
cfe3e736fd
66 files changed
+1287
-541
No files matched your search
@@ -456,6 +456,7 @@ class McpServersViewModel :
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
is NetworkResult.Failure -> {
|
||||
_uiState.update { it.copy(toastMessage = "Failed to start OAuth: ${result.error.message}") }
|
||||
}
|
||||
@@ -489,6 +490,7 @@ class McpServersViewModel :
|
||||
}
|
||||
loadServers()
|
||||
}
|
||||
|
||||
"error" -> {
|
||||
polling = false
|
||||
_uiState.update {
|
||||
@@ -498,15 +500,18 @@ class McpServersViewModel :
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
"authorization_required" -> {
|
||||
// Keep polling
|
||||
}
|
||||
|
||||
else -> {
|
||||
// Check if worker is done or expired
|
||||
// Continue polling until status transitions
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
is NetworkResult.Failure -> {
|
||||
// Keep polling or stop after too many failures? Let's just log/toast n retry a few times
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user