From 78b44cb4d0caf0200069ffb004dcfaa81a33f4ae Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Sat, 17 Oct 2020 11:46:46 +0200 Subject: [PATCH] do not say a concrete user has enabled protection if we do not really know --- src/dc_receive_imf.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dc_receive_imf.rs b/src/dc_receive_imf.rs index 0173bd33a..8956a0d24 100644 --- a/src/dc_receive_imf.rs +++ b/src/dc_receive_imf.rs @@ -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?; } }