fix: Mark 1:1 chat as protected when joining a group

This commit is contained in:
Hocuri
2023-11-08 16:13:39 +01:00
committed by link2xt
parent 391cffb454
commit 3e194969c0
3 changed files with 13 additions and 15 deletions

View File

@@ -228,9 +228,8 @@ impl BobState {
if context
.get_config_bool(Config::VerifiedOneOnOneChats)
.await?
&& chat_id == self.alice_chat()
{
chat_id
self.alice_chat()
.set_protection(
context,
ProtectionStatus::Protected,