feat(profiles): add local on-device profile hiding and filtering

This commit is contained in:
M57
2026-08-30 20:51:06 +03:00
parent 5c8ab7ed6c
commit cdcecb9734
11 changed files with 240 additions and 10 deletions
@@ -1901,7 +1901,10 @@ class ChatViewModel(
// Fetch available bot profiles for @ autocomplete
val profilesResult = safeApiCall { ApiClient.hermesApi.getProfiles() }
if (profilesResult is NetworkResult.Success) {
val profiles = profilesResult.data.profiles.orEmpty()
val profiles =
profilesResult.data.profiles.orEmpty().filter {
!AuthManager.isProfileHidden(it.name) && it.botMeta()?.hidden != true
}
_uiState.update { it.copy(availableBots = profiles) }
}
}