Electron-445 - Change API from presence status to meeting status

This commit is contained in:
Kiran Niranjan
2018-05-10 13:10:41 +05:30
committed by kiranniranjan
parent 296af7fad5
commit 2fe67c6fb6
4 changed files with 19 additions and 29 deletions

View File

@@ -64,10 +64,10 @@ const throttledSetBadgeCount = throttle(1000, function(count) {
});
});
const throttledSetPresenceStatus = throttle(1000, function(status) {
const throttledSetIsInMeetingStatus = throttle(1000, function(isInMeeting) {
local.ipcRenderer.send(apiName, {
cmd: apiCmds.setPresenceStatus,
status: status
cmd: apiCmds.setIsInMeeting,
isInMeeting
});
});
@@ -296,11 +296,11 @@ function createAPI() {
},
/**
* Sets user presence status
* Sets if the user is in an active meeting
* will be used to handle memory refresh functionality
*/
setPresenceStatus: function (status) {
throttledSetPresenceStatus(status);
setIsInMeeting: function (isInMeeting) {
throttledSetIsInMeetingStatus(isInMeeting);
}
};