mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 07:23:03 +00:00
Prevent extra commas
This commit is contained in:
parent
c8e774aa74
commit
e8aef9ae68
1 changed files with 3 additions and 1 deletions
|
@ -2066,7 +2066,9 @@ public class MessageHelper {
|
|||
|
||||
static String formatAddressesCompose(Address[] addresses) {
|
||||
String result = formatAddresses(addresses, true, true);
|
||||
if (!TextUtils.isEmpty(result))
|
||||
if (result != null && result.endsWith(","))
|
||||
result += " ";
|
||||
else if (!TextUtils.isEmpty(result))
|
||||
result += ", ";
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue