Skip to content

Commit

Permalink
reactions are not a 'probably private reply'
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
r10s committed Apr 2, 2024
1 parent 6ff3a2c commit 375fcbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/receive_imf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 375fcbd

Please sign in to comment.