Fix: Signaturen-Referenzen werden bei Speichern + Sync aktualisiert

- Beim Speichern von E-Mail 1 werden alle =email1 Identitäten mit-aktualisiert
- attachSignature: false auch im Second Pass (=other@ Referenzen) gesetzt
This commit is contained in:
Kendrick Bollens
2026-05-08 17:09:01 +02:00
parent 7a7815feca
commit ee24caf8b7
3 changed files with 16 additions and 1 deletions

View File

@@ -562,7 +562,8 @@ class SyncManager {
const fullSig = SyncManager.combineSignature(srcHeader, footer);
await browser.identities.update(id, {
signature: fullSig,
signatureIsPlainText: false
signatureIsPlainText: false,
attachSignature: false
});
loadedHeaders[email] = srcHeader;
updated++;

Binary file not shown.

View File

@@ -1198,6 +1198,20 @@ document.getElementById('sig-save-button').addEventListener('click', async () =>
});
if (identity) identity.signature = fullSignature;
// Update all identities that reference this email as source
for (const otherId of allIdentities) {
const otherSource = sourceMap[otherId.email.toLowerCase()] || 'own';
if (otherSource === `=${identity.email.toLowerCase()}`) {
await browser.identities.update(otherId.id, {
signature: fullSignature,
signatureIsPlainText: false,
attachSignature: false
});
otherId.signature = fullSignature;
}
}
updateSigSyncIndicator();
// Auto-push to server