fix(platform): remove auto-fix identity selection and fix feed loading race condition

- Remove problematic $ensureActiveIdentityPopulated() that auto-selected identities
- Add user-friendly $needsActiveIdentitySelection() and $getAvailableAccountDids() methods
- Fix missing updateActiveDid implementation in CapacitorPlatformService
- Resolve race condition in HomeView initialization causing feed loading failures
- Improve TypeScript error handling in ContactsView invite processing

Addresses team concerns about data consistency and user control for identity selection.
This commit is contained in:
Matthew Raymer
2025-09-04 10:36:50 +00:00
parent 720be1aa4d
commit 10a1f435ed
4 changed files with 117 additions and 88 deletions

View File

@@ -478,7 +478,7 @@ export default class HomeView extends Vue {
await this.initializeIdentity();
// Settings already loaded in initializeIdentity()
await this.loadContacts();
// Contacts already loaded in initializeIdentity()
// Registration check already handled in initializeIdentity()
await this.loadFeedData();
@@ -600,7 +600,7 @@ export default class HomeView extends Vue {
// Load contacts with graceful fallback
try {
this.loadContacts();
await this.loadContacts();
} catch (error) {
this.$logAndConsole(
`[HomeView] Failed to retrieve contacts: ${error}`,