From 637ced97f0d4600ff1f2b2d74d60d12958775f84 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Mon, 31 Oct 2016 19:55:36 +0700 Subject: [PATCH] toLocaleString --- matrix-util.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/matrix-util.js b/matrix-util.js index bbdbad1..cd77763 100644 --- a/matrix-util.js +++ b/matrix-util.js @@ -26,7 +26,11 @@ function MatrixUtil(options) { MatrixUtil.prototype.updateBuddyState = function(jid, state, statusText, resource) { if (!jid) {return; } if (jid == 'undefined') {return; } - jid = jid.toLowerCase(); + + try { + jid = jid.toLowerCase(); + jid = jid.toLocaleString(); + } catch(e) { } if (!resource) { resource = 'undefined'; -- 1.9.0