mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 21:36:30 +03:00
fix: ContactId::set_name_ex(): Emit ContactsChanged when transaction is completed
This fixes flaky JSON-RPC's `test_rename_synchronization()`.
This commit is contained in:
@@ -130,13 +130,15 @@ impl ContactId {
|
|||||||
Ok((addr, fingerprint))
|
Ok((addr, fingerprint))
|
||||||
},
|
},
|
||||||
)?;
|
)?;
|
||||||
context.emit_event(EventType::ContactsChanged(Some(self)));
|
|
||||||
Ok(Some((addr, fingerprint)))
|
Ok(Some((addr, fingerprint)))
|
||||||
} else {
|
} else {
|
||||||
Ok(None)
|
Ok(None)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.await?;
|
.await?;
|
||||||
|
if row.is_some() {
|
||||||
|
context.emit_event(EventType::ContactsChanged(Some(self)));
|
||||||
|
}
|
||||||
|
|
||||||
if sync.into()
|
if sync.into()
|
||||||
&& let Some((addr, fingerprint)) = row
|
&& let Some((addr, fingerprint)) = row
|
||||||
|
|||||||
Reference in New Issue
Block a user