From 8d7aacdf47751b2972d982878220d6f92d4e6969 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Wed, 2 Oct 2019 01:04:52 -0700 Subject: [PATCH] Add body to file caption. --- src/spectralroom.cpp | 2 ++ 1 file changed, 2 insertions(+) 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"); }