fix bug where drag&drop would not create new object versions

This commit is contained in:
marlon-erler
2024-07-13 11:56:15 +02:00
parent ea4d27ce64
commit 414ab87110
4 changed files with 35 additions and 13 deletions
+4 -3
View File
@@ -230,9 +230,10 @@ function StatusColumnView(
const messageObject = chat.objects.value.get(id);
if (!messageObject) return;
const latest = chat.getMostRecentContent(messageObject);
latest.status = status;
latest.categoryName = category;
const newContent = chat.createObjectContent();
newContent.categoryName = category;
newContent.status = status;
chat.updateObjectContent(messageObject, newContent);
chat.addObjectAndSend(messageObject);
}