courrier multi account restore compose

This commit is contained in:
alma 2025-04-28 15:26:02 +02:00
parent 62101bd1d2
commit 85efb768cf

View File

@ -86,7 +86,8 @@ export async function getImapConnection(
throw new Error('Invalid email credentials configuration');
}
const connectionKey = `${userId}:${credentials.email}`;
// Use accountId in connection key to ensure different accounts get different connections
const connectionKey = `${userId}:${accountId || 'default'}`;
const existingConnection = connectionPool[connectionKey];
// Try to get session data from Redis