Try to find our correct identity when replying to event invites

pull/196/head
Thomas Weißschuh 5 years ago
parent c717573886
commit 0e704d1f01

@ -2877,6 +2877,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ev.setDateEnd(event.getDateEnd());
InternetAddress to = (InternetAddress) message.to[0];
EntityIdentity identity = db.identity().getIdentity(message.identity);
for (Address recipient: message.to) {
if (identity.similarAddress(recipient)) {
to = (InternetAddress) recipient;
break;
}
}
Attendee attendee = new Attendee(to.getPersonal(), to.getAddress());
if (action == R.id.btnCalendarAccept) {

Loading…
Cancel
Save