fix bug where tasks were not sent due to missing paramter

This commit is contained in:
marlon-erler
2026-04-15 10:41:44 +00:00
parent 4a8de94a02
commit 8bdd4db1be
4 changed files with 9 additions and 6 deletions
+4 -3
View File
@@ -860,7 +860,7 @@
};
this.updateBoardAndSend = (boardInfoFileContent) => {
this.updateBoard(boardInfoFileContent);
this.chatModel.sendMessage("", boardInfoFileContent);
this.chatModel.sendMessage("", void 0, boardInfoFileContent);
};
this.storeBoard = (boardInfoFileContent) => {
this.fileModel.storeFileContent(boardInfoFileContent);
@@ -903,7 +903,7 @@
};
this.updateTaskAndSend = (taskFileContent) => {
this.updateTask(taskFileContent);
this.chatModel.sendMessage("", taskFileContent);
this.chatModel.sendMessage("", void 0, taskFileContent);
};
this.storeTask = (taskFileContent) => {
this.fileModel.storeFileContent(taskFileContent);
@@ -1046,7 +1046,7 @@
// methods
this.addFileContentAndSend = (fileContent) => {
this.handleFileContent(fileContent);
this.chatModel.sendMessage("", fileContent);
this.chatModel.sendMessage("", void 0, fileContent);
};
// storage
this.storeFileContent = (fileContent) => {
@@ -1255,6 +1255,7 @@
if (chatMessage == null) return;
chatMessage.status = "received" /* Received */;
this.addMessage(chatMessage);
if (chatMessage.stringifiedFile != void 0) return;
this.setReadStatus(true);
};
this.handleReaction = (reaction) => {
+2
View File
@@ -102,6 +102,8 @@ export default class ChatModel {
chatMessage.status = ChatMessageStatuses.Received;
this.addMessage(chatMessage);
if (chatMessage.stringifiedFile != undefined) return;
this.setReadStatus(true);
};
+2 -2
View File
@@ -107,7 +107,7 @@ export default class BoardsAndTasksModel {
updateBoardAndSend = (boardInfoFileContent: BoardInfoFileContent): void => {
this.updateBoard(boardInfoFileContent);
this.chatModel.sendMessage("", boardInfoFileContent);
this.chatModel.sendMessage("", undefined, boardInfoFileContent);
};
storeBoard = (boardInfoFileContent: BoardInfoFileContent): void => {
@@ -166,7 +166,7 @@ export default class BoardsAndTasksModel {
updateTaskAndSend = (taskFileContent: TaskFileContent): void => {
this.updateTask(taskFileContent);
this.chatModel.sendMessage("", taskFileContent);
this.chatModel.sendMessage("", undefined, taskFileContent);
};
storeTask = (taskFileContent: TaskFileContent): void => {
+1 -1
View File
@@ -71,7 +71,7 @@ export default class FileModel {
// methods
addFileContentAndSend = (fileContent: FileContent<string>): void => {
this.handleFileContent(fileContent);
this.chatModel.sendMessage("", fileContent);
this.chatModel.sendMessage("", undefined, fileContent);
};
// storage