Fix UI not updated when moving an event from a calendar to another

pull/1/head
yflory 4 years ago
parent a4cf1b447f
commit 23dcc2e30d

@ -664,7 +664,11 @@ ctx.calendars[channel] = {
nThen(function (waitFor) { nThen(function (waitFor) {
Realtime.whenRealtimeSyncs(c.lm.realtime, waitFor()); Realtime.whenRealtimeSyncs(c.lm.realtime, waitFor());
if (newC) { Realtime.whenRealtimeSyncs(newC.lm.realtime, waitFor()); } if (newC) { Realtime.whenRealtimeSyncs(newC.lm.realtime, waitFor()); }
}).nThen(cb); }).nThen(function () {
sendUpdate(ctx, c);
if (newC) { sendUpdate(ctx, newC); }
cb();
});
}; };
var deleteEvent = function (ctx, data, cId, cb) { var deleteEvent = function (ctx, data, cId, cb) {
var id = data.calendarId; var id = data.calendarId;

Loading…
Cancel
Save