fix last message text if file #LINQT-1976

This commit is contained in:
Gaelle Braud 2025-09-11 15:39:49 +02:00
parent a3996fc33c
commit f8119e607d

View file

@ -495,7 +495,7 @@ QString ToolModel::getMessageFromContent(std::list<std::shared_ptr<linphone::Con
for (auto &content : contents) { for (auto &content : contents) {
if (content->isText()) { if (content->isText()) {
return Utils::coreStringToAppString(content->getUtf8Text()); return Utils::coreStringToAppString(content->getUtf8Text());
} else if (content->isFile()) { } else if (content->isFile() || content->isFileTransfer() || content->isFileEncrypted()) {
if (res.isEmpty()) res.append(Utils::coreStringToAppString(content->getName())); if (res.isEmpty()) res.append(Utils::coreStringToAppString(content->getName()));
else res.append(", " + Utils::coreStringToAppString(content->getName())); else res.append(", " + Utils::coreStringToAppString(content->getName()));
} else if (content->isIcalendar()) { } else if (content->isIcalendar()) {