File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
services/static-webserver/client/source/class/osparc/desktop Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -333,6 +333,13 @@ qx.Class.define("osparc.desktop.StudyEditor", {
333333 if ( ! socket . slotExists ( "projectDocument:updated" ) ) {
334334 socket . on ( "projectDocument:updated" , data => {
335335 if ( data [ "projectId" ] === this . getStudy ( ) . getUuid ( ) ) {
336+ // OM remove this once backend provides the clientSessionId
337+ if ( data [ "userPrimaryGid" ] && data [ "userPrimaryGid" ] === osparc . auth . Data . getInstance ( ) . getGroupId ( ) ) {
338+ // ignore my own updates
339+ console . debug ( "Ignoring my own projectDocument:updated event" , data ) ;
340+ return ;
341+ }
342+
336343 if ( data [ "clientSessionId" ] && data [ "clientSessionId" ] === osparc . utils . Utils . getClientSessionID ( ) ) {
337344 // ignore my own updates
338345 console . debug ( "Ignoring my own projectDocument:updated event" , data ) ;
You can’t perform that action at this time.
0 commit comments