diff --git a/src/spectralroom.cpp b/src/spectralroom.cpp index 2a360fc85..905d7158a 100644 --- a/src/spectralroom.cpp +++ b/src/spectralroom.cpp @@ -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"); }