Compare commits

..

1 Commits

Author SHA1 Message Date
Your Name
a5d194f730 v0.7.20 - Fix automatic relay connection for restored authentication state 2025-10-15 15:47:02 -04:00
3 changed files with 22 additions and 10 deletions

View File

@@ -560,9 +560,21 @@ async function restoreAuthenticationState(pubkey) {
showProfileInHeader();
loadUserProfile();
// Note: Configuration fetching now requires explicit relay connection
// User must connect to relay manually after login
console.log('✅ Authentication state restored - connect to relay to fetch configuration');
// Automatically attempt to connect to relay after restoring authentication state
console.log('✅ Authentication state restored - automatically attempting to connect to relay...');
setTimeout(() => {
connectToRelay().catch(error => {
console.log(`Automatic relay connection failed: ${error.message}`);
// Check if this is an authentication-related error
if (error.message.includes('authentication') ||
error.message.includes('auth') ||
error.message.includes('permission') ||
error.message.includes('unauthorized') ||
error.message.includes('forbidden')) {
showAuthenticationWarning(error.message);
}
});
}, 500); // Small delay to allow profile loading to complete
console.log('✅ Authentication state restored successfully');
}

View File

@@ -1 +1 @@
3928044
3952751

File diff suppressed because one or more lines are too long