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);
|
const fullSig = SyncManager.combineSignature(srcHeader, footer);
|
||||||
await browser.identities.update(id, {
|
await browser.identities.update(id, {
|
||||||
signature: fullSig,
|
signature: fullSig,
|
||||||
signatureIsPlainText: false
|
signatureIsPlainText: false,
|
||||||
|
attachSignature: false
|
||||||
});
|
});
|
||||||
loadedHeaders[email] = srcHeader;
|
loadedHeaders[email] = srcHeader;
|
||||||
updated++;
|
updated++;
|
||||||
|
|||||||
Binary file not shown.
@@ -1198,6 +1198,20 @@ document.getElementById('sig-save-button').addEventListener('click', async () =>
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (identity) identity.signature = fullSignature;
|
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();
|
updateSigSyncIndicator();
|
||||||
|
|
||||||
// Auto-push to server
|
// Auto-push to server
|
||||||
|
|||||||
Reference in New Issue
Block a user