skip protection enabled/disabled messages where they did not appear in the past with verified-groups

this avoids confusion - as long the current core
does not communicate with a UI that enables/disables protection,
everything looks just the same as in the past :)
This commit is contained in:
B. Petersen
2020-10-17 23:14:13 +02:00
committed by holger krekel
parent 0ae9443e22
commit e15372531e
2 changed files with 13 additions and 8 deletions

View File

@@ -2034,7 +2034,9 @@ pub async fn create_group_chat(
});
if protect == ProtectionStatus::Protected {
chat_id.set_protection(context, protect).await?;
// this part is to stay compatible to verified groups,
// in some future, we will drop the "protect"-flag from create_group_chat()
chat_id.inner_set_protection(context, protect).await?;
}
Ok(chat_id)