fix day view not respecting filter
This commit is contained in:
Vendored
+1
-2
@@ -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;
|
||||||
|
|||||||
@@ -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> = (
|
||||||
|
|||||||
Reference in New Issue
Block a user