feat: remove show_emails config

This commit is contained in:
link2xt
2025-12-18 20:29:11 +00:00
parent 8c8245f638
commit 654095b97b
16 changed files with 13 additions and 209 deletions

View File

@@ -2032,12 +2032,6 @@ async fn test_classic_email_chat() -> Result<()> {
let msgs = get_chat_msgs(&alice, chat_id).await?;
assert_eq!(msgs.len(), 1);
// Alice disables receiving classic emails.
alice
.set_config(Config::ShowEmails, Some("0"))
.await
.unwrap();
// Already received classic email should still be in the chat.
assert_eq!(chat_id.get_fresh_msg_cnt(&alice).await?, 1);