Commit 9c03fb34aa082a5cb7e65f6c782d88c366fbb896

Authored by Adhidarma Hadiwinoto
1 parent 0a06547ec5
Exists in master

simplifikasi penghapusan undefined resources

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -90,7 +90,7 @@ MatrixUtil.prototype.updateBuddyState = function(jid, state, statusText, resourc
90 90 logger.warn('MatrixUtil: Exception on update resources on matrix', {jid: jid, state: state, statusText: statusText, resource: resource});
91 91 }
92 92  
93   - if (resource != 'undefined' && matrix.buddies[jid].resources['undefined']) {
  93 + if (resource != 'undefined') {
94 94 try {
95 95 delete matrix.buddies[jid].resources['undefined'];
96 96 }