From c798b2afe0571ddb5686e9e61bced8350c370404 Mon Sep 17 00:00:00 2001 From: John Doe Date: Fri, 22 Mar 2024 20:44:59 +0100 Subject: [PATCH] fix: show self send attachments #278 --- src/signal/impl.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/signal/impl.rs b/src/signal/impl.rs index 126707d..8a47c61 100644 --- a/src/signal/impl.rs +++ b/src/signal/impl.rs @@ -132,9 +132,9 @@ impl SignalManager for PresageManager { ..Default::default() }; - if has_attachments && message.is_empty() { + if has_attachments { // TODO: Temporary solution until we start rendering attachments - message = format!( + let attachment_message: String = format!( "", attachments .iter() @@ -142,6 +142,11 @@ impl SignalManager for PresageManager { .collect::>() .join(", ") ); + if message.is_empty() { + message = attachment_message + } else { + message = message + "\n" + &attachment_message + } } let (response_tx, response) = oneshot::channel();