From 375fcbd63c413f077af14daf34c5ee27c0aad3b2 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Tue, 2 Apr 2024 01:53:08 +0200 Subject: [PATCH] reactions are not a 'probably private reply' `is_probably_private_reply()` checks if a message should better go to the one to one chat instead of the chat already identified by the `In-Reply-To`. this functionality is needed to make "Reply Privately" work. however, this functionality is never true for reactions. if we would return `true` here, own reactions seen by a second device would not get the correct chat assiged. --- src/receive_imf.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/receive_imf.rs b/src/receive_imf.rs index 53497276e..1c51cdcd5 100644 --- a/src/receive_imf.rs +++ b/src/receive_imf.rs @@ -1721,6 +1721,11 @@ async fn is_probably_private_reply( } } + let is_reaction = mime_parser.parts.iter().any(|part| part.is_reaction); + if is_reaction { + return Ok(false); + } + Ok(true) }