From 0860508a1d9b7c84d8e0b8cb78652c7999153146 Mon Sep 17 00:00:00 2001 From: iequidoo Date: Mon, 1 Jul 2024 21:38:01 -0300 Subject: [PATCH] feat: Contact::create_ex: Don't send sync message if nothing changed (#5705) Follow-up to 5fa7cff46. Let's still not send a sync message if the contact wasn't modified. This is not very important, but just for consistency with the `chat::rename_ex()` behaviour. --- src/contact.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contact.rs b/src/contact.rs index 9700551e8..c6435c225 100644 --- a/src/contact.rs +++ b/src/contact.rs @@ -642,7 +642,7 @@ impl Contact { set_blocked(context, Nosync, contact_id, false).await?; } - if sync.into() { + if sync.into() && sth_modified != Modifier::None { chat::sync( context, chat::SyncId::ContactAddr(addr.to_string()),