Skip to content

Commit

Permalink
fix for notification from other modules
Browse files Browse the repository at this point in the history
  • Loading branch information
sdetweil committed Oct 17, 2024
1 parent 40bfc53 commit b42bdb0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions modules/default/calendar/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,17 @@ Module.register("calendar", {

this.selfUpdate();
},
notificationReceived(notification,payload,sender){

// Override socket notification handler.
socketNotificationReceived (notification, payload) {
if (notification === "FETCH_CALENDAR") {
this.sendSocketNotification(notification, { url: payload.url, id: this.identifier });
if (this.hasCalendarURL(payload.url)) {
this.sendSocketNotification(notification, { url: payload.url, id: this.identifier });
}
}
},

// Override socket notification handler.
socketNotificationReceived (notification, payload) {

if (this.identifier !== payload.id) {
return;
Expand Down

0 comments on commit b42bdb0

Please sign in to comment.