From f11cbdb28eb190f9fc2e50ba6984e55fc1e9a506 Mon Sep 17 00:00:00 2001 From: Hanh Date: Mon, 13 Mar 2023 21:15:51 +1000 Subject: [PATCH] Don't use body of memo as subject anymore --- src/wallet.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet.rs b/src/wallet.rs index 29527b7..c0f5dd0 100644 --- a/src/wallet.rs +++ b/src/wallet.rs @@ -132,7 +132,7 @@ pub fn decode_memo(memo: &str, recipient: &str, timestamp: u32, height: u32) -> ZMessage { sender: None, recipient: recipient.to_string(), - subject: memo_lines[0].chars().take(20).collect(), + subject: String::new(), body: memo.to_string(), timestamp, height,