Skip to content
Snippets Groups Projects
Commit 2476bda1 authored by Fadi Shehadeh's avatar Fadi Shehadeh Committed by Sébastien Blin
Browse files

conversationlistmodelbase : file path to display name

- file display name instead of path in last interaction

Change-Id: I00559e81141317079e61e3cd3ffcf2f190f3c85e
parent 6dcf2669
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,12 @@ ConversationListModelBase::dataForItem(item_t item, int role) const
}
case Role::LastInteraction: {
if (!item.interactions->empty()) {
return QVariant(item.interactions->at(item.lastMessageUid).body);
auto interaction = item.interactions->at(item.lastMessageUid);
auto body_ = interaction.body;
if (interaction.type == interaction::Type::DATA_TRANSFER) {
body_ = interaction.commit.value("displayName");
}
return QVariant(body_);
}
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment