Fix regression where declining an event from Calendar would send CANCEL instead of REPLY (Bifrost#T31474)

The fix for T1357 (acc49b51ff) was broken for cases with delegation and events in other user namespace.
This commit is contained in:
Aleksander Machniak 2017-05-22 13:03:24 +02:00
parent 67e4977160
commit c4cfe37d8c

View file

@ -2562,7 +2562,7 @@ function rcube_calendar_ui(settings)
if (_has_attendees) {
var checked = (settings.itip_notify & 1 ? ' checked="checked"' : '');
if (action == 'remove' && cal.group == 'personal' && is_attendee(event)) {
if (action == 'remove' && cal.group != 'shared' && is_attendee(event)) {
decline = true;
checked = event.status != 'CANCELLED' ? checked : '';
html += '<div class="message">' +