Add body to file caption.

This commit is contained in:
Black Hat
2019-10-02 01:04:52 -07:00
parent 686b08fce2
commit 8d7aacdf47

View File

@@ -258,6 +258,8 @@ QString SpectralRoom::eventToString(const RoomEvent& evt,
fileCaption = prettyPrint
? QMatrixClient::prettyPrint(e.plainBody())
: e.plainBody();
} else if (e.content()->fileInfo()->originalName != e.plainBody()) {
fileCaption = e.plainBody() + " | " + fileCaption;
}
return !fileCaption.isEmpty() ? fileCaption : tr("a file");
}