refactor: do not emit ChatModified event in notify_peer_verified()

The chat is not modified at least since
c6ea4e389a
(PR https://github.com/deltachat/deltachat-core-rust/pull/4998),
even the info message is not posted there.
This commit is contained in:
link2xt
2024-01-09 03:08:04 +00:00
parent c708c44f0a
commit 32bcb59601

View File

@@ -191,7 +191,6 @@ impl BobState {
timestamp: i64,
) -> Result<()> {
let contact = Contact::get_by_id(context, self.invite().contact_id()).await?;
let chat_id = self.joining_chat_id(context).await?;
self.alice_chat()
.set_protection(
context,
@@ -200,7 +199,6 @@ impl BobState {
Some(contact.id),
)
.await?;
context.emit_event(EventType::ChatModified(chat_id));
Ok(())
}
}