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
pull/229/merge
Francis Lachapelle 2018-07-06 10:24:40 -04:00
parent 1039f13f55
commit 3eb01aef71
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@
if (!allEmails)
[self _fetchAllEmails];
return [allEmails lastObject];
return [allEmails objectAtIndex: 0];
}
- (BOOL) hasEmail: (NSString *) email