fix(sync): skip sync when chat name is set to the current one

This commit is contained in:
link2xt
2023-11-15 17:26:57 +00:00
parent b0ef082b2a
commit 8e869de350

View File

@@ -3737,7 +3737,7 @@ async fn rename_ex(
if !success {
bail!("Failed to set name");
}
if sync.into() {
if sync.into() && chat.name != new_name {
let sync_name = sync_name.to_string();
chat.sync(context, SyncAction::Rename(sync_name))
.await