Skip to content

Commit

Permalink
UI-1333: Fixed issue with presence_id set to null in some odd cases
Browse files Browse the repository at this point in the history
  • Loading branch information
JRMaitre committed Mar 26, 2015
1 parent f8aa0f8 commit bb522b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion submodules/users/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -2401,7 +2401,8 @@ define(function(require){
}
}

if(!userData.hasOwnProperty('presence_id') || userData.presence_id === 'unset') {
// if presence_id doesn't have a proper value, delete it and remove the internal callerId
if(!userData.hasOwnProperty('presence_id') || userData.presence_id === 'unset' || !userData.presence_id) {
delete userData.presence_id;

if(userData.caller_id.hasOwnProperty('internal')) {
Expand Down

0 comments on commit bb522b3

Please sign in to comment.