From c98dfd29c78ade68bcca9c6d3adcce9a4b5f5e90 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 13 Apr 2021 10:39:29 +0200 Subject: [PATCH] Fix UI not updated when deleting an event --- www/common/outer/calendar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/outer/calendar.js b/www/common/outer/calendar.js index a02b69af4..025191651 100644 --- a/www/common/outer/calendar.js +++ b/www/common/outer/calendar.js @@ -676,7 +676,9 @@ ctx.calendars[channel] = { if (!c) { return void cb({error: "ENOENT"}); } c.proxy.content = c.proxy.content || {}; delete c.proxy.content[data.id]; - Realtime.whenRealtimeSyncs(c.lm.realtime, cb); + Realtime.whenRealtimeSyncs(c.lm.realtime, function () { + sendUpdate(ctx, c); + }); }; var removeClient = function (ctx, cId) {