e2e warning message

This commit is contained in:
Bob Mottram 2018-04-25 13:12:37 +01:00
parent 7f8e1d20ec
commit 9a441ec4dc
1 changed files with 2 additions and 2 deletions

View File

@ -80,9 +80,9 @@ function xmpp_update_e2e_policy {
sed -i 's|e2e_policy_chat.*|e2e_policy_chat = "required"|g' "$filename"
fi
if ! grep -q "e2e_policy_message_required_chat" "$filename"; then
echo "e2e_policy_message_required_chat = \"\"" >> "$filename"
echo "e2e_policy_message_required_chat = \"$xmpp_encryption_warning\"" >> "$filename"
else
sed -i "s|e2e_policy_message_required_chat.*|e2e_policy_message_required_chat = \"\"|g" "$filename"
sed -i "s|e2e_policy_message_required_chat.*|e2e_policy_message_required_chat = \"$xmpp_encryption_warning\"|g" "$filename"
fi
if [[ "$ONION_ONLY" != 'no' ]]; then