[#520] fix event order flicker (#530)

This commit is contained in:
Camille Moussu
2026-02-10 17:32:54 +01:00
committed by GitHub
parent d6e464afad
commit 6b42597a2c
@@ -85,8 +85,7 @@ export const eventToFullCalendarFormat = (
const isOrganiser = e.organizer
? e.organizer.cal_address?.toLowerCase() === userAddress?.toLowerCase()
: true; // if there are no organizer in the event we assume it was organized by the owner
const isPersonnalEvent =
extractEventBaseUuid(e.calId) === userId && isOrganiser;
const isPersonnalEvent = extractEventBaseUuid(e.calId) === userId;
const convertedEvent: CalendarEvent & {
colors: Record<string, string> | undefined;
editable: boolean;
@@ -95,8 +94,8 @@ export const eventToFullCalendarFormat = (
...e,
title: formatEventChipTitle(e, t),
colors: e.color,
editable: isPersonnalEvent,
priority: isPersonnalEvent && !pending ? 1 : 0,
editable: isPersonnalEvent && isOrganiser && !pending,
priority: isPersonnalEvent ? 1 : 0,
};
if (!isAllDay && e.start && eventTimezone) {