Electron-445 - Update to validate only "AWAY" presence status

This commit is contained in:
Kiran Niranjan 2018-05-08 13:00:27 +05:30 committed by kiranniranjan
parent a5f5556bd2
commit 3067aaacc8

View File

@ -65,21 +65,7 @@ function optimizeMemory(memoryInfo) {
* @return {boolean}
*/
function isUserActive() {
if (!userPresenceStatus) {
return true
}
switch (userPresenceStatus) {
case 'AVAILABLE':
case 'IN_A_MEETING':
case 'ON_THE_PHONE':
case 'OFFLINE':
return true;
default:
return false;
}
return !(userPresenceStatus && userPresenceStatus === 'AWAY');
}
/**