From 3eb01aef719e6b4fb1010b091e5b8d517e3d30be Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 6 Jul 2018 10:24:40 -0400 Subject: [PATCH] System address is the first user's addresses In the preferences module, we don't save the user's custom email address when it matches the system address. This address was considered the last of all the user's email addresses, which is first, not intuitive, and second, incorrect when composing a message since the first address is used by default. Fixes #3551 --- 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 bc7ff7910..3b4aa7593 100644 --- a/SoObjects/SOGo/SOGoUser.m +++ b/SoObjects/SOGo/SOGoUser.m @@ -317,7 +317,7 @@ if (!allEmails) [self _fetchAllEmails]; - return [allEmails lastObject]; + return [allEmails objectAtIndex: 0]; } - (BOOL) hasEmail: (NSString *) email