mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-03 14:25:38 +02:00
messagesadapter: remove unnecessary chatview text elide
Change-Id: Idcbd0c8694044259794140c041347ec4a487436c
This commit is contained in:
parent
cdaa3cfeed
commit
dc060370f4
1 changed files with 1 additions and 6 deletions
|
@ -687,12 +687,7 @@ MessagesAdapter::setMessagesFileContent(const QString& path)
|
|||
{
|
||||
qint64 fileSize = QFileInfo(path).size();
|
||||
QString fileName = QFileInfo(path).fileName();
|
||||
/*
|
||||
* If file name is too large, trim it.
|
||||
*/
|
||||
if (fileName.length() > 15) {
|
||||
fileName = fileName.remove(12, fileName.length() - 12) + "...";
|
||||
}
|
||||
|
||||
QString param = QString("addFile_path('%1','%2','%3')")
|
||||
.arg(path, fileName, Utils::humanFileSize(fileSize));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue