Commit 637ced97f0d4600ff1f2b2d74d60d12958775f84

Authored by Adhidarma Hadiwinoto
1 parent bd0c80ebf3
Exists in master

toLocaleString

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

... ... @@ -26,7 +26,11 @@ function MatrixUtil(options) {
26 26 MatrixUtil.prototype.updateBuddyState = function(jid, state, statusText, resource) {
27 27 if (!jid) {return; }
28 28 if (jid == 'undefined') {return; }
29   - jid = jid.toLowerCase();
  29 +
  30 + try {
  31 + jid = jid.toLowerCase();
  32 + jid = jid.toLocaleString();
  33 + } catch(e) { }
30 34  
31 35 if (!resource) {
32 36 resource = 'undefined';