Skip to content

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Jul 18, 2025

No description provided.

@@ -3917,9 +3917,14 @@ pub(crate) async fn add_contact_to_chat_ex(
chat.typ != Chattype::OutBroadcast || contact_id != ContactId::SELF,
"Cannot add SELF to broadcast channel."
);
let is_encrypted = chat.is_encrypted(context).await?;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let is_encrypted = chat.is_encrypted(context).await?;
let is_chat_encrypted = chat.is_encrypted(context).await?;

Comment on lines +3922 to +3923
is_encrypted == contact.is_key_contact(),
if is_encrypted {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
is_encrypted == contact.is_key_contact(),
if is_encrypted {
is_chat_encrypted == contact.is_key_contact(),
if is_chat_encrypted {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants