store received items

This commit is contained in:
marlon-erler
2024-07-11 00:56:06 +02:00
parent b7dbe6b13d
commit d3604d474b
9 changed files with 23 additions and 14 deletions
+2 -2
View File
@@ -151,7 +151,7 @@ export class Chat {
data.messageBody
);
if (itemData != undefined) {
if (itemData && itemData.id && itemData.title) {
return this.handleItem(itemData);
}
@@ -177,7 +177,7 @@ export class Chat {
};
handleItem = (itemData: Item): void => {
console.log(itemData);
this.items.set(itemData.id, itemData);
};
// messages