Fix emoji as avatars issue for the receipts

pull/1/head
Konstantinos Sideris 7 years ago
parent caf5b70994
commit 7792ca7149
  1. 3
      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) == '@')

Loading…
Cancel
Save