Skip to content

Commit 66bc345

Browse files
committed
ignore my own updates
1 parent ddc1986 commit 66bc345

File tree

1 file changed

+7
-0
lines changed
  • services/static-webserver/client/source/class/osparc/desktop

1 file changed

+7
-0
lines changed

services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)