Browse Source

Fixed shortcuts for emoji recent

master
Igor Zhukov 10 years ago
parent
commit
6aabc78bf2
  1. 2
      app/js/message_composer.js

2
app/js/message_composer.js

@ -53,6 +53,7 @@
if (Array.isArray(shortcut)) { if (Array.isArray(shortcut)) {
shortcut = shortcut[0]; shortcut = shortcut[0];
} }
if (shortcut && typeof shortcut !== 'string') {
if (shortcut.charAt(0) == ':') { if (shortcut.charAt(0) == ':') {
shortcut = shortcut.substr(1, shortcut.length - 2); shortcut = shortcut.substr(1, shortcut.length - 2);
} }
@ -60,6 +61,7 @@
result.push({code: code, rate: 1}); result.push({code: code, rate: 1});
} }
} }
}
callback(result); callback(result);
}); });
}); });

Loading…
Cancel
Save