Skip to content

Commit c22c488

Browse files
committed
notifyUser in store
1 parent 6391704 commit c22c488

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

services/static-webserver/client/source/class/osparc/study/Conversations.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,23 @@ qx.Class.define("osparc.study.Conversations", {
9393
return osparc.data.Resources.fetch("conversations", "addMessage", params)
9494
.catch(err => osparc.FlashMessenger.logError(err));
9595
},
96+
97+
notifyUser: function(studyId, conversationId, userGroupId) {
98+
const params = {
99+
url: {
100+
studyId,
101+
conversationId,
102+
},
103+
data: {
104+
"content": {
105+
"userGroupId": userGroupId,
106+
},
107+
"type": "NOTIFICATION",
108+
}
109+
};
110+
return osparc.data.Resources.fetch("conversations", "addMessage", params)
111+
.catch(err => osparc.FlashMessenger.logError(err));
112+
},
96113
},
97114

98115
members: {

0 commit comments

Comments
 (0)