From f1a9adae1178ffed160742a4a159f4e04dc228d6 Mon Sep 17 00:00:00 2001 From: marlon-erler Date: Fri, 19 Jul 2024 13:40:03 +0200 Subject: [PATCH] fix day view not respecting filter --- dist/index.js | 3 +-- src/Views/Objects/dayView.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index ccbb0807..a5b61eaf 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1649,7 +1649,7 @@ messageObjects.handleAddition(processObject); dayInCalendar.subscribeSilent(() => { objectsForDayView.clear(); - chat.objects.value.forEach(processObject); + messageObjects.value.forEach(processObject); }); const objectConverter = (messageObject) => { const latest = chat.getMostRecentContent(messageObject); @@ -1709,7 +1709,6 @@ const priority = latest.priority ?? 0; const priorityInverse = 100 - priority; const order = `${minutesTotal}${priorityInverse}`; - console.log(order); const view = /* @__PURE__ */ createElement("span", { class: "secondary ellipsis" }, chat.getObjectTitle(messageObject)); view.style.order = order; return view; diff --git a/src/Views/Objects/dayView.tsx b/src/Views/Objects/dayView.tsx index 7ab2a7af..2e05c73d 100644 --- a/src/Views/Objects/dayView.tsx +++ b/src/Views/Objects/dayView.tsx @@ -28,7 +28,7 @@ export function DayView( messageObjects.handleAddition(processObject); dayInCalendar.subscribeSilent(() => { objectsForDayView.clear(); - chat.objects.value.forEach(processObject); + messageObjects.value.forEach(processObject); }) const objectConverter: React.StateItemConverter = (