do not say a concrete user has enabled protection if we do not really know

This commit is contained in:
B. Petersen
2020-10-17 11:46:46 +02:00
parent 0a9a2394d8
commit 78b44cb4d0

View File

@@ -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?;
}
}