fix(mail): When the signature is empty, the -- seperator appears.

This commit is contained in:
smizrahi
2024-08-05 08:47:09 +02:00
parent 980b5e28dd
commit 58db9c980e
+1 -1
View File
@@ -1119,7 +1119,7 @@ static const NSString *kEncryptedUserNamePrefix = @"uenc";
tmpIdentities = [NSMutableArray array];
for (identity in identities) {
tmpIdentity = [NSMutableDictionary dictionaryWithDictionary: identity];
if ([tmpIdentity objectForKey: @"signature"] ) {
if ([tmpIdentity objectForKey: @"signature"] && [[tmpIdentity objectForKey: @"signature"] length] > 0) {
// Add raw html embed class
if ([[tmpIdentity objectForKey: @"signature"] rangeOfString:@"raw-html-embed"].location == NSNotFound
&& [[[self userDefaults] mailComposeMessageType] isEqualToString: @"html"]