mirror of
https://github.com/chatmail/core.git
synced 2026-05-17 05:46:30 +03:00
Don't send GroupNameChanged message if the group name doesn't change in terms of
improve_single_line_input() (#3650)
This commit is contained in:
@@ -17,6 +17,8 @@
|
|||||||
- Treat attached PGP keys as peer keys with mutual encryption preference #3832
|
- Treat attached PGP keys as peer keys with mutual encryption preference #3832
|
||||||
- fix migration of old databases #3842
|
- fix migration of old databases #3842
|
||||||
- Fix cargo clippy and doc errors after Rust update to 1.66 #3850
|
- Fix cargo clippy and doc errors after Rust update to 1.66 #3850
|
||||||
|
- Don't send GroupNameChanged message if the group name doesn't change in terms of
|
||||||
|
improve_single_line_input() #3852
|
||||||
|
|
||||||
|
|
||||||
## 1.103.0
|
## 1.103.0
|
||||||
|
|||||||
@@ -3052,7 +3052,11 @@ pub async fn set_chat_name(context: &Context, chat_id: ChatId, new_name: &str) -
|
|||||||
paramsv![new_name.to_string(), chat_id],
|
paramsv![new_name.to_string(), chat_id],
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
if chat.is_promoted() && !chat.is_mailing_list() && chat.typ != Chattype::Broadcast {
|
if chat.is_promoted()
|
||||||
|
&& !chat.is_mailing_list()
|
||||||
|
&& chat.typ != Chattype::Broadcast
|
||||||
|
&& improve_single_line_input(&chat.name) != new_name
|
||||||
|
{
|
||||||
msg.viewtype = Viewtype::Text;
|
msg.viewtype = Viewtype::Text;
|
||||||
msg.text = Some(
|
msg.text = Some(
|
||||||
stock_str::msg_grp_name(context, &chat.name, &new_name, ContactId::SELF).await,
|
stock_str::msg_grp_name(context, &chat.name, &new_name, ContactId::SELF).await,
|
||||||
|
|||||||
Reference in New Issue
Block a user