Added start/end date/time to calendar replies

This commit is contained in:
M66B 2019-07-31 09:46:45 +02:00
parent 0fa78c3e66
commit d98298160d
1 changed files with 5 additions and 0 deletions

View File

@ -1342,6 +1342,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ev.setUid(event.getUid());
if (event.getSequence() != null)
ev.setSequence(event.getSequence());
if (event.getDateStart() != null)
ev.setDateStart(event.getDateStart());
if (event.getDateEnd() != null)
ev.setDateEnd(event.getDateEnd());
InternetAddress to = (InternetAddress) message.to[0];
Attendee attendee = new Attendee(to.getPersonal(), to.getAddress());
@ -1360,6 +1364,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ev.addAttendee(attendee);
// https://icalendar.org/validator.html
ICalendar response = new ICalendar();
response.setMethod(Method.REPLY);
response.addEvent(ev);