Skip to content
Snippets Groups Projects
Commit dc060370 authored by Ming Rui Zhang's avatar Ming Rui Zhang Committed by Andreas Traczyk
Browse files

messagesadapter: remove unnecessary chatview text elide

Change-Id: Idcbd0c8694044259794140c041347ec4a487436c
parent cdaa3cfe
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
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