From 23dcc2e30d0ec8b397f7feb183f4a5c080dfff36 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 13 Apr 2021 10:37:34 +0200 Subject: [PATCH] Fix UI not updated when moving an event from a calendar to another --- www/common/outer/calendar.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/common/outer/calendar.js b/www/common/outer/calendar.js index e02ad1412..a02b69af4 100644 --- a/www/common/outer/calendar.js +++ b/www/common/outer/calendar.js @@ -664,7 +664,11 @@ ctx.calendars[channel] = { nThen(function (waitFor) { Realtime.whenRealtimeSyncs(c.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 id = data.calendarId;