mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
save
This commit is contained in:
+5
-17
@@ -153,25 +153,8 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
||||
key: "getAllConnectedUsers",
|
||||
value: function getAllConnectedUsers() {
|
||||
return this.http.get(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'users.presence', this.options);
|
||||
} //Check whether user is online or offline
|
||||
|
||||
}, {
|
||||
key: "getUserPresence",
|
||||
value: function getUserPresence(id) {
|
||||
var params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpParams"]();
|
||||
params = params.set("userId", id);
|
||||
var opts = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'users.getPresence', opts);
|
||||
} //Load messages from roomId
|
||||
|
||||
}, {
|
||||
key: "loadJoinedRooms",
|
||||
value: function loadJoinedRooms() {
|
||||
return this.http.get(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'im.list', this.options);
|
||||
}
|
||||
}, {
|
||||
key: "getAllDirectMessages",
|
||||
value: function getAllDirectMessages() {
|
||||
@@ -324,6 +307,11 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
||||
};
|
||||
return this.http.get(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'groups.info', opts);
|
||||
}
|
||||
}, {
|
||||
key: "renameGroup",
|
||||
value: function renameGroup(body) {
|
||||
return this.http.post(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'groups.rename', body, this.options);
|
||||
}
|
||||
}]);
|
||||
|
||||
return ChatService;
|
||||
|
||||
Reference in New Issue
Block a user