Skip to content

Commit 55d5266

Browse files
committed
fixes
1 parent d4e7fcc commit 55d5266

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

services/static-webserver/client/source/class/osparc/study/Conversation.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,14 @@ qx.Class.define("osparc.study.Conversation", {
199199
});
200200
addMessages.addListener("messageAdded", e => {
201201
const data = e.getData();
202-
if (data["conversationId"]) {
203-
this.setConversationId(data["conversationId"]);
202+
if (data["conversationId"] && this.getConversation() === null) {
203+
osparc.store.ConversationsProject.getInstance().getConversation(this.__studyData["uuid"], data["conversationId"])
204+
.then(conversationData => {
205+
const conversation = new osparc.data.model.Conversation(conversationData);
206+
this.setConversation(conversation);
207+
});
208+
} else {
209+
this.getConversation().addMessage(data);
204210
this.addMessage(data);
205211
}
206212
});

0 commit comments

Comments
 (0)