Skip to content

Commit

Permalink
Sometimes the signature is undefined instead of empty, don't remove i…
Browse files Browse the repository at this point in the history
…dentity in those cases
  • Loading branch information
rinkp authored and Gijsdeman committed Dec 1, 2023
1 parent 2455955 commit 8c5124c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mailcowDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function editUserSignatures(user: Users, SOBs: string[]): Promise<v
let newIdentities: SOGoMailIdentity[] = [];

for (let identity of defaultSettings.SOGoMailIdentities) {
if (identity.signature.indexOf('class="autogenerated"') === -1) {
if (identity.signature === undefined || identity.signature.indexOf('class="autogenerated"') === -1) {
newIdentities.push(identity);
}
}
Expand Down

0 comments on commit 8c5124c

Please sign in to comment.