Commit d0706458 authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent aa221695
......@@ -546,8 +546,7 @@ bool Scheduler::acceptFreeBusy(const IncidenceBase::Ptr &incidence, iTIPMethod m
Person::Ptr from;
if (method == iTIPPublish) {
from = freebusy->organizer();
}
if ((method == iTIPReply) && (freebusy->attendeeCount() == 1)) {
} else if ((method == iTIPReply) && (freebusy->attendeeCount() == 1)) {
Attendee::Ptr attendee = freebusy->attendees().at(0);
from->setName(attendee->name());
from->setEmail(attendee->email());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment