summary refs log tree commit diff
path: root/src/HistoryViewItem.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-23 21:31:08 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-23 21:31:08 +0300
commit42bb9bb63a957944a032a4f48db502a7cbd9b74c (patch)
treeb0622cc93bbb60e2dbd6d16ca1c95015b3e0aabf /src/HistoryViewItem.cc
parentUpdate screen (diff)
downloadnheko-42bb9bb63a957944a032a4f48db502a7cbd9b74c.tar.xz
Add full emoji support
Diffstat (limited to 'src/HistoryViewItem.cc')
-rw-r--r--src/HistoryViewItem.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/HistoryViewItem.cc b/src/HistoryViewItem.cc

index ed00abf9..cde07eb9 100644 --- a/src/HistoryViewItem.cc +++ b/src/HistoryViewItem.cc
@@ -142,10 +142,10 @@ QString HistoryViewItem::replaceEmoji(const QString &body) QString fmtBody = ""; for (auto &c : body) { - auto code = c.unicode(); + int code = c.unicode(); - // TODO: A map should be used with the unicode codes supported by emoji one - if (code > 127) + // TODO: Be more precise here. + if (code > 9000) fmtBody += "<span style=\"font-family: Emoji One; font-size: 16px\">" + QString(c) + "</span>"; else fmtBody += c;