mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 13:36: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 {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user