refactor: Use Message::new_text() more (#6127)

Follow-up to https://github.com/deltachat/deltachat-core-rust/pull/6123
This commit is contained in:
Hocuri
2024-10-30 13:05:58 +01:00
committed by GitHub
parent 6abadac4bb
commit d6c2c863b7
24 changed files with 66 additions and 111 deletions

View File

@@ -3600,8 +3600,7 @@ On 2020-10-25, Bob wrote:
for draft in [false, true] {
let chat = t.get_self_chat().await;
let mut msg = Message::new(Viewtype::Text);
msg.set_text(long_txt.clone());
let mut msg = Message::new_text(long_txt.clone());
if draft {
chat.id.set_draft(&t, Some(&mut msg)).await?;
}