"required" policy restricts E2EE warnings from arriving #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
By default, when using the "required" policy, messages from the system (i.e. the used VirtualHost) about lack of E2EE seem to be blocked by the policy.
This should be fixable by automatically prepending the used VirtualHost to the whitelist in
warn_on_plaintext_messages
.Turns out, this wasn't the problem.
Previously,
mod_e2e_policy
used normal messages from the server JID for warnings when using theoptional
policy, but used<message type="error"…
when using therequired
policy. Turns out dino doesn't handle the latter at all, so the problem was only client-side. Works fine in Gajim, tho messages are only shown as tooltip.Came up with an acceptable fix:
Added module option
e2e_policy_warn_mechanism
to choose whether to use normal or error messages for both policy values (making behavior more consistent, which will reduce confusion when resolving #5).The previously assumed fix was also implemented and is used if normal messages are chosen to avoid this fix introducing the bug we originally thought we had.