summary refs log tree commit diff
path: root/src/Utils.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-12-15 21:53:43 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-12-15 21:53:51 +0100
commit7f1f7472033cb8efc7ab283783e5ea3223a6a393 (patch)
treead5c255ac0263d76ec14416785238d0f56f657dd /src/Utils.cpp
parentFix crash when we don't have device keys cached (diff)
downloadnheko-7f1f7472033cb8efc7ab283783e5ea3223a6a393.tar.xz
Fix black cat emoji
Diffstat (limited to '')
-rw-r--r--src/Utils.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp
index 7fcaf5e2..1d8fcd9c 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -54,8 +54,9 @@ bool
 utils::codepointIsEmoji(uint code)
 {
         // TODO: Be more precise here.
-        return (code >= 0x2600 && code <= 0x27bf) || (code >= 0x1f300 && code <= 0x1f3ff) ||
-               (code >= 0x1f000 && code <= 0x1faff);
+        return (code >= 0x2600 && code <= 0x27bf) || (code >= 0x2b00 && code <= 0x2bff) ||
+               (code >= 0x1f300 && code <= 0x1f3ff) || (code >= 0x1f000 && code <= 0x1faff) ||
+               code == 0x200d;
 }
 
 QString