From 9e6ceb3201a2737e676decf3df9605714632a300 Mon Sep 17 00:00:00 2001
From: Eugen <eugen@zeonfederated.com>
Date: Thu, 5 Jan 2017 13:45:21 +0100
Subject: Revert "Display native emoji on browsers which support it"

---
 app/assets/javascripts/components/emoji.jsx | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

(limited to 'app/assets/javascripts/components/emoji.jsx')

diff --git a/app/assets/javascripts/components/emoji.jsx b/app/assets/javascripts/components/emoji.jsx
index 990aea5be..c93c07c74 100644
--- a/app/assets/javascripts/components/emoji.jsx
+++ b/app/assets/javascripts/components/emoji.jsx
@@ -1,18 +1,9 @@
 import emojione from 'emojione';
-import detectVersion from 'mojibaka';
 
 emojione.imageType    = 'png';
 emojione.sprites      = false;
 emojione.imagePathPNG = '/emoji/';
 
-let emoji_version = detectVersion();
-
 export default function emojify(text) {
-  // Browser too old to support native emoji
-  if (emoji_version < 9.0) {
-    return emojione.toImage(text);
-  // Convert short codes into native emoji
-  } else {
-    return emojione.shortnameToUnicode(text);
-  }
+  return emojione.toImage(text);
 };
-- 
cgit 

