From 3a799098af83277faba99266e2285408e0d0ee7b Mon Sep 17 00:00:00 2001
From: ubermanu <e.vodor@gmail.com>
Date: Tue, 16 Mar 2021 06:27:13 +0100
Subject: [PATCH] enable skin tone emojis

---
 src/plugins/sib-reactions.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/sib-reactions.js b/src/plugins/sib-reactions.js
index e6f3570..4755964 100644
--- a/src/plugins/sib-reactions.js
+++ b/src/plugins/sib-reactions.js
@@ -180,7 +180,7 @@ converse.plugins.add('sib-reactions', {
         self.appendChild(picker);
 
         picker.addEventListener('emoji-click', function(e) {
-          const emoji = e.detail.emoji.unicode;
+          const emoji = e.detail.unicode;
           const emojis = getUserReactionEmojis(self.model);
 
           // TODO: If it has the reaction from this user already, remove it? (config)
@@ -248,7 +248,7 @@ converse.plugins.add('sib-reactions', {
           el.appendChild(picker);
 
           picker.addEventListener('emoji-click', function(e) {
-            const emoji = e.detail.emoji.unicode;
+            const emoji = e.detail.unicode;
             const emojis = getUserReactionEmojis(el.model);
 
             // TODO: If it has the reaction from this user already, remove it? (config)
-- 
GitLab