mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Optimization
This commit is contained in:
parent
8c2689c2b1
commit
b74da489a4
1 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue