Bug 1460241 - Add the default reminder when saving invitation copies or adding received PUBLISHed events. r=philipp
authorMakeMyDay <makemyday@gmx-topmail.de>
Sat, 04 Aug 2018 00:22:10 +0200
changeset 24435 905579e3ff374cd3103a6b988a91cd02ad356e7f
parent 24434 763cca5220a980e4c4d439ba6b2f0edca0dbebdf
child 24436 0dc99a856ed307ae2910f913f7a544938c704771
push id14703
push usermozilla@jorgk.com
push dateSat, 04 Aug 2018 21:15:24 +0000
treeherdercomm-central@905579e3ff37 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilipp
bugs1460241
Bug 1460241 - Add the default reminder when saving invitation copies or adding received PUBLISHed events. r=philipp
calendar/base/modules/utils/calItipUtils.jsm
--- a/calendar/base/modules/utils/calItipUtils.jsm
+++ b/calendar/base/modules/utils/calItipUtils.jsm
@@ -1905,16 +1905,17 @@ ItipItemFinder.prototype = {
                                     att.participationStatus = partStat;
                                 } else {
                                     cal.ASSERT(att, "no attendee to reply REQUEST!");
                                     return null;
                                 }
                             } else {
                                 cal.ASSERT(itipItemItem.getAttendees({}).length == 0,
                                            "invalid number of attendees in PUBLISH!");
+                                cal.alarms.setDefaultValues(newItem);
                             }
                             return newItem.calendar.addItem(newItem,
                                                             method == "REQUEST"
                                                             ? new ItipOpListener(opListener, null, extResponse)
                                                             : opListener);
                         };
                         operations.push(action);
                         break;