mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 06:16:30 +03:00
refactor: set_chat_profile_image(): Remove !chat.is_mailing_list() check
This commit is contained in:
@@ -4312,7 +4312,7 @@ pub async fn set_chat_profile_image(
|
|||||||
msg.text = stock_str::msg_grp_img_changed(context, ContactId::SELF).await;
|
msg.text = stock_str::msg_grp_img_changed(context, ContactId::SELF).await;
|
||||||
}
|
}
|
||||||
chat.update_param(context).await?;
|
chat.update_param(context).await?;
|
||||||
if chat.is_promoted() && !chat.is_mailing_list() {
|
if chat.is_promoted() {
|
||||||
msg.id = send_msg(context, chat_id, &mut msg).await?;
|
msg.id = send_msg(context, chat_id, &mut msg).await?;
|
||||||
context.emit_msgs_changed(chat_id, msg.id);
|
context.emit_msgs_changed(chat_id, msg.id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user