mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 15:06:30 +03:00
fix(sync): skip sync when chat name is set to the current one
This commit is contained in:
@@ -3737,7 +3737,7 @@ async fn rename_ex(
|
|||||||
if !success {
|
if !success {
|
||||||
bail!("Failed to set name");
|
bail!("Failed to set name");
|
||||||
}
|
}
|
||||||
if sync.into() {
|
if sync.into() && chat.name != new_name {
|
||||||
let sync_name = sync_name.to_string();
|
let sync_name = sync_name.to_string();
|
||||||
chat.sync(context, SyncAction::Rename(sync_name))
|
chat.sync(context, SyncAction::Rename(sync_name))
|
||||||
.await
|
.await
|
||||||
|
|||||||
Reference in New Issue
Block a user