Skip to content

Commit 2aa2191

Browse files
committed
automatic message
1 parent 83a44c7 commit 2aa2191

File tree

1 file changed

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

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,18 @@ qx.Class.define("osparc.support.Conversation", {
143143
.then(data => {
144144
const newConversation = new osparc.data.model.Conversation(data);
145145
this.setConversation(newConversation);
146-
this.__postMessage(content);
146+
this.__postMessage(content)
147+
.then(() => {
148+
this.addSystemMessage("A support ticket has been created.\nOur team will review your request and contact you soon.");
149+
});
147150
});
148151
}
149152
});
150153
},
151154

152155
__postMessage: function(content) {
153156
const conversationId = this.getConversation().getConversationId();
154-
osparc.store.ConversationsSupport.getInstance().postMessage(conversationId, content)
157+
return osparc.store.ConversationsSupport.getInstance().postMessage(conversationId, content)
155158
.then(data => {
156159
this.fireDataEvent("messageAdded", data);
157160
return data;

0 commit comments

Comments
 (0)