From 448f6cf8b63f7f1aca7184d9b57735567db1c3cc Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Fri, 28 Oct 2016 20:03:34 +0700 Subject: [PATCH] coba perbaikan --- matrix-util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix-util.js b/matrix-util.js index 9082a82..1a54af6 100644 --- a/matrix-util.js +++ b/matrix-util.js @@ -47,9 +47,9 @@ MatrixUtil.prototype.updateBuddyState = function(jid, state, statusText, resourc lastUpdate: moment().format('YYYY-MM-DD HH:mm:ss') } - if (resource != 'undefined' && matrix.buddies[jid].resources.undefined) { + if (resource != 'undefined' && matrix.buddies[jid].resources['undefined']) { try { - delete matrix.buddies[jid].resources.undefined; + delete matrix.buddies[jid].resources.['undefined']; } catch(e) {}; } -- 1.9.0