Always show sender's name

This commit is contained in:
Simon Redman 2019-07-23 13:42:32 +02:00
parent b7a6b1f00e
commit 88e0ffa01a

View file

@ -123,7 +123,7 @@ void ConversationModel::createRowFromMessage(const ConversationMessage& message,
QString displayBody = message.containsTextBody() ? message.body() : i18n("(Unsupported Message Type)"); QString displayBody = message.containsTextBody() ? message.body() : i18n("(Unsupported Message Type)");
ConversationAddress sender = message.addresses().first(); ConversationAddress sender = message.addresses().first();
QString senderName = message.isMultitarget() ? SmsHelper::getTitleForAddresses({sender}) : QString(); QString senderName = message.isIncoming() ? SmsHelper::getTitleForAddresses({sender}) : QString();
auto item = new QStandardItem; auto item = new QStandardItem;
item->setText(displayBody); item->setText(displayBody);