From 58db9c980eb518dc726e908307988b98cf7a4d84 Mon Sep 17 00:00:00 2001 From: smizrahi Date: Mon, 5 Aug 2024 08:47:09 +0200 Subject: [PATCH] fix(mail): When the signature is empty, the -- seperator appears. --- SoObjects/SOGo/SOGoUser.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoObjects/SOGo/SOGoUser.m b/SoObjects/SOGo/SOGoUser.m index 9eed75357..389fe13c1 100644 --- a/SoObjects/SOGo/SOGoUser.m +++ b/SoObjects/SOGo/SOGoUser.m @@ -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"]