summary refs log tree commit diff
path: root/src/dialogs
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-16 21:02:29 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-16 21:02:29 +0200
commit7792ca71490197a3c055ce23378ee569494936c0 (patch)
treef00301d10baf528ec0a906f217cf5fae39bb210d /src/dialogs
parentMove the cursor to the start/end of the text before we move up/down in history (diff)
downloadnheko-7792ca71490197a3c055ce23378ee569494936c0.tar.xz
Fix emoji as avatars issue for the receipts
Diffstat (limited to 'src/dialogs')
-rw-r--r--src/dialogs/ReadReceipts.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dialogs/ReadReceipts.cc b/src/dialogs/ReadReceipts.cc

index 51470c67..be79c7aa 100644 --- a/src/dialogs/ReadReceipts.cc +++ b/src/dialogs/ReadReceipts.cc
@@ -7,6 +7,7 @@ #include <QVBoxLayout> #include "Config.h" +#include "Utils.h" #include "Avatar.h" #include "AvatarProvider.h" @@ -32,7 +33,7 @@ ReceiptItem::ReceiptItem(QWidget *parent, const QString &user_id, uint64_t times avatar_ = new Avatar(this); avatar_->setSize(40); - avatar_->setLetter(QChar(displayName[0])); + avatar_->setLetter(utils::firstChar(displayName)); // If it's a matrix id we use the second letter. if (displayName.size() > 1 && displayName.at(0) == '@')