fix: Use the correct chat description stock string again (#7939)

Fix https://github.com/chatmail/core/issues/7933

Apparently I was inattentive when reviewing
https://github.com/chatmail/core/pull/7870/; there even was a test that
tested that the incorrect description is used XD

Thanks for noticing @r10s!
This commit is contained in:
Hocuri
2026-03-03 12:36:34 +01:00
committed by GitHub
parent b10acd194e
commit c928015f20
3 changed files with 69 additions and 16 deletions

View File

@@ -4263,9 +4263,7 @@ async fn set_chat_description_ex(
if chat.is_promoted() {
let mut msg = Message::new(Viewtype::Text);
msg.text =
"[Chat description changed. To see this and other new features, please update the app]"
.to_string();
msg.text = stock_str::msg_chat_description_changed(context, ContactId::SELF).await;
msg.param.set_cmd(SystemMessage::GroupDescriptionChanged);
msg.id = send_msg(context, chat_id, &mut msg).await?;