mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Electron-445 - Update to validate only "AWAY" presence status
This commit is contained in:
parent
a5f5556bd2
commit
3067aaacc8
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user