From 32bcb596013775f5c4359c6e882fa7bb3e9fdcc0 Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 9 Jan 2024 03:08:04 +0000 Subject: [PATCH] refactor: do not emit ChatModified event in notify_peer_verified() The chat is not modified at least since c6ea4e389a3e0dd52c089c654c4ef553c7a58116 (PR https://github.com/deltachat/deltachat-core-rust/pull/4998), even the info message is not posted there. --- src/securejoin/bob.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/securejoin/bob.rs b/src/securejoin/bob.rs index 1ef8c5170..0b4fd1ab8 100644 --- a/src/securejoin/bob.rs +++ b/src/securejoin/bob.rs @@ -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(()) } }