Replace newlines in attendee email addresses

pull/194/merge
M66B 4 years ago
parent c5d39bf1f6
commit 81aab46ef0

@ -3222,9 +3222,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
List<String> attendee = new ArrayList<>(); List<String> attendee = new ArrayList<>();
for (Attendee a : event.getAttendees()) { for (Attendee a : event.getAttendees()) {
String email = a.getEmail(); String email = a.getEmail();
if (!TextUtils.isEmpty(email)) if (!TextUtils.isEmpty(email)) {
email = email.replaceAll("\\r?\\n", "");
attendee.add(email); attendee.add(email);
} }
}
int status; int status;
if (icalendar.getMethod() == null) if (icalendar.getMethod() == null)

Loading…
Cancel
Save