mirror of
https://github.com/chatmail/core.git
synced 2026-04-29 11:26:29 +03:00
do not leak group names on forwarding, add tests for that (#2719)
* add a test to check no possibly sensible data are forwarded * do not leak group names on forwarding * adapt existing test
This commit is contained in:
@@ -1683,7 +1683,7 @@ mod tests {
|
||||
|
||||
chat::forward_msgs(&t, &[message_from_bob.id], group_id).await?;
|
||||
let subject = get_subject(&t, t.pop_sent_msg().await).await?;
|
||||
assert_eq!(subject, "Fwd: Different subject");
|
||||
assert_eq!(subject, "Re: groupname");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user