mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Revert "Use cc/bcc as recipients for attendees too"
This reverts commit 01e540694f
.
This commit is contained in:
parent
86af24a800
commit
7b5ec0ce7d
1 changed files with 3 additions and 10 deletions
|
@ -4454,19 +4454,12 @@ public class MessageHelper {
|
|||
else if (method == null || method.isRequest() || method.isReply()) {
|
||||
int status = CalendarContract.Events.STATUS_TENTATIVE;
|
||||
if (method != null && method.isReply()) {
|
||||
List<Address> recipients = new ArrayList<>();
|
||||
if (message.to != null)
|
||||
recipients.addAll(Arrays.asList(message.to));
|
||||
if (message.cc != null)
|
||||
recipients.addAll(Arrays.asList(message.cc));
|
||||
if (message.bcc != null)
|
||||
recipients.addAll(Arrays.asList(message.bcc));
|
||||
List<Attendee> attendees = event.getAttendees();
|
||||
if (attendees != null)
|
||||
if (attendees != null && message.to != null)
|
||||
for (Attendee attendee : attendees) {
|
||||
String email = attendee.getEmail();
|
||||
for (Address address : recipients) {
|
||||
String recipient = ((InternetAddress) address).getAddress();
|
||||
for (Address to : message.to) {
|
||||
String recipient = ((InternetAddress) to).getAddress();
|
||||
if (!TextUtils.isEmpty(email) && email.equalsIgnoreCase(recipient)) {
|
||||
ParticipationStatus pstatus = attendee.getParticipationStatus();
|
||||
if (ParticipationStatus.ACCEPTED.equals(pstatus))
|
||||
|
|
Loading…
Reference in a new issue