mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +03:00
do not say a concrete user has enabled protection if we do not really know
This commit is contained in:
@@ -1245,8 +1245,10 @@ async fn create_or_lookup_group(
|
||||
recreate_member_list = true;
|
||||
|
||||
if create_protected == ProtectionStatus::Protected {
|
||||
// set from_id=0 as it is not clear that the sender of this random group message
|
||||
// actually really has enabled chat-protection at some point.
|
||||
chat_id
|
||||
.add_protection_msg(context, ProtectionStatus::Protected, false, from_id)
|
||||
.add_protection_msg(context, ProtectionStatus::Protected, false, 0)
|
||||
.await?;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user