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:
bjoern
2021-09-30 13:19:37 +02:00
committed by GitHub
parent 82819a642f
commit 30a3da97da
2 changed files with 45 additions and 3 deletions

View File

@@ -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(())
}