mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
conversationlistmodelbase : file path to display name
- file display name instead of path in last interaction Change-Id: I00559e81141317079e61e3cd3ffcf2f190f3c85e
This commit is contained in:
parent
6dcf266920
commit
2476bda11b
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue