From d34104711d37dda1d29f7ad1ec07dfdf44dd49c8 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 14 Nov 2022 12:12:09 +0100 Subject: [PATCH] Remove nbsp from email addresses --- app/src/main/java/eu/faircode/email/MessageHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index a17b63fd18..b9fe907425 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -4813,7 +4813,9 @@ public class MessageHelper { for (InternetAddress address : addresses) { String email = address.getAddress(); if (email != null) - address.setAddress(email.replace(" ", "")); + address.setAddress(email + .replace(" ", "") + .replace("\u00a0", "")); } return addresses;