Add possibility to fetch calendars through socket notifications

This commit is contained in:
krukle
2022-07-12 14:35:04 +02:00
parent 2d15e4f976
commit 8bf9b9bef9
2 changed files with 12 additions and 0 deletions

View File

@@ -133,6 +133,10 @@ Module.register("calendar", {
// Override socket notification handler.
socketNotificationReceived: function (notification, payload) {
if (notification === "FETCH_CALENDAR") {
this.sendSocketNotification(notification, {"url": payload.url, "id": this.identifier})
}
if (this.identifier !== payload.id) {
return;
}