1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Optimization

This commit is contained in:
M66B 2023-10-25 19:40:30 +02:00
parent 8c2689c2b1
commit b74da489a4

View file

@ -4470,13 +4470,17 @@ public class MessageHelper {
String recipient = ((InternetAddress) address).getAddress();
if (!TextUtils.isEmpty(email) && email.equalsIgnoreCase(recipient)) {
ParticipationStatus pstatus = attendee.getParticipationStatus();
if (ParticipationStatus.ACCEPTED.equals(pstatus))
if (ParticipationStatus.ACCEPTED.equals(pstatus)) {
status = CalendarContract.Events.STATUS_CONFIRMED;
else if (ParticipationStatus.DECLINED.equals(pstatus))
break;
} else if (ParticipationStatus.DECLINED.equals(pstatus)) {
status = CalendarContract.Events.STATUS_CANCELED;
break;
break;
}
}
}
if (status != CalendarContract.Events.STATUS_TENTATIVE)
break;
}
}