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:
@@ -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.
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user