Add body to file caption.
This commit is contained in:
@@ -258,6 +258,8 @@ QString SpectralRoom::eventToString(const RoomEvent& evt,
|
|||||||
fileCaption = prettyPrint
|
fileCaption = prettyPrint
|
||||||
? QMatrixClient::prettyPrint(e.plainBody())
|
? QMatrixClient::prettyPrint(e.plainBody())
|
||||||
: e.plainBody();
|
: e.plainBody();
|
||||||
|
} else if (e.content()->fileInfo()->originalName != e.plainBody()) {
|
||||||
|
fileCaption = e.plainBody() + " | " + fileCaption;
|
||||||
}
|
}
|
||||||
return !fileCaption.isEmpty() ? fileCaption : tr("a file");
|
return !fileCaption.isEmpty() ? fileCaption : tr("a file");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user