Skip to content

Commit 93fa107

Browse files
committed
new conversation
1 parent 3aa9e94 commit 93fa107

File tree

1 file changed

+6
-2
lines changed
  • services/static-webserver/client/source/class/osparc/support

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,13 @@ qx.Class.define("osparc.support.Conversation", {
123123
addMessages.addListener("messageAdded", e => {
124124
const data = e.getData();
125125
if (data["conversationId"] && this.getConversation() === null) {
126-
this.setConversationId(data["conversationId"]);
126+
osparc.store.ConversationsSupport.getInstance().getConversation(data["conversationId"])
127+
.then(conversation => {
128+
this.setConversation(conversation);
129+
});
130+
} else {
131+
this.addMessage(data);
127132
}
128-
this.addMessage(data);
129133
});
130134
},
131135

0 commit comments

Comments
 (0)