File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ qx.Class.define("osparc.conversation.AddMessage", {
175175 addComment : function ( ) {
176176 const conversationId = this . getConversationId ( ) ;
177177 if ( conversationId ) {
178- this . __postMessage ( ) ;
178+ return this . __postMessage ( ) ;
179179 } else {
180180 const studyData = this . getStudyData ( ) ;
181181 let promise = null ;
@@ -191,10 +191,10 @@ qx.Class.define("osparc.conversation.AddMessage", {
191191 }
192192 promise = osparc . store . ConversationsSupport . getInstance ( ) . postConversation ( extraContext ) ;
193193 }
194- promise
194+ return promise
195195 . then ( data => {
196196 this . setConversationId ( data [ "conversationId" ] ) ;
197- this . __postMessage ( ) ;
197+ return this . __postMessage ( ) ;
198198 } ) ;
199199 }
200200 } ,
@@ -211,12 +211,14 @@ qx.Class.define("osparc.conversation.AddMessage", {
211211 } else {
212212 promise = osparc . store . ConversationsSupport . getInstance ( ) . postMessage ( conversationId , content ) ;
213213 }
214- promise
214+ return promise
215215 . then ( data => {
216216 this . fireDataEvent ( "messageAdded" , data ) ;
217217 commentField . getChildControl ( "text-area" ) . setValue ( "" ) ;
218+ return data ;
218219 } ) ;
219220 }
221+ return Promise . reject ( ) ;
220222 } ,
221223
222224 __editComment : function ( ) {
Original file line number Diff line number Diff line change @@ -215,8 +215,9 @@ qx.Class.define("osparc.support.ConversationPage", {
215215 this . getChildControl ( "conversation-content" ) . getChildControl ( "add-message" ) . getChildControl ( "comment-field" )
216216 ) {
217217 this . getChildControl ( "conversation-content" ) . getChildControl ( "add-message" ) . getChildControl ( "comment-field" ) . setText ( message ) ;
218- this . getChildControl ( "conversation-content" ) . getChildControl ( "add-message" ) . addComment ( ) ;
218+ return this . getChildControl ( "conversation-content" ) . getChildControl ( "add-message" ) . addComment ( ) ;
219219 }
220+ return Promise . reject ( ) ;
220221 } ,
221222 }
222223} ) ;
You can’t perform that action at this time.
0 commit comments