fix day view not respecting filter

This commit is contained in:
marlon-erler
2024-07-19 13:40:03 +02:00
parent b722247356
commit f1a9adae11
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -1649,7 +1649,7 @@
messageObjects.handleAddition(processObject); messageObjects.handleAddition(processObject);
dayInCalendar.subscribeSilent(() => { dayInCalendar.subscribeSilent(() => {
objectsForDayView.clear(); objectsForDayView.clear();
chat.objects.value.forEach(processObject); messageObjects.value.forEach(processObject);
}); });
const objectConverter = (messageObject) => { const objectConverter = (messageObject) => {
const latest = chat.getMostRecentContent(messageObject); const latest = chat.getMostRecentContent(messageObject);
@@ -1709,7 +1709,6 @@
const priority = latest.priority ?? 0; const priority = latest.priority ?? 0;
const priorityInverse = 100 - priority; const priorityInverse = 100 - priority;
const order = `${minutesTotal}${priorityInverse}`; const order = `${minutesTotal}${priorityInverse}`;
console.log(order);
const view = /* @__PURE__ */ createElement("span", { class: "secondary ellipsis" }, chat.getObjectTitle(messageObject)); const view = /* @__PURE__ */ createElement("span", { class: "secondary ellipsis" }, chat.getObjectTitle(messageObject));
view.style.order = order; view.style.order = order;
return view; return view;
+1 -1
View File
@@ -28,7 +28,7 @@ export function DayView(
messageObjects.handleAddition(processObject); messageObjects.handleAddition(processObject);
dayInCalendar.subscribeSilent(() => { dayInCalendar.subscribeSilent(() => {
objectsForDayView.clear(); objectsForDayView.clear();
chat.objects.value.forEach(processObject); messageObjects.value.forEach(processObject);
}) })
const objectConverter: React.StateItemConverter<MessageObject> = ( const objectConverter: React.StateItemConverter<MessageObject> = (