mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
e2ee: require quorum to enable encryption
Previously, standard Autocrypt rule was used to determine whether encryption is enabled: if at least one recipient does not prefer encryption, encryption is disabled. This rule has been problematic in large groups, because the larger is the group, the higher is the chance that one of the users does not prefer encryption. New rule requires a majority of users to prefer encryption. Note that it does not affect 1:1 chats, because it is required that *strictly* more than a half users in a chat prefer encryption.
This commit is contained in:
committed by
link2xt
parent
0344bc387c
commit
60a8b47ad0
@@ -1017,7 +1017,6 @@ class TestOnlineAccount:
|
||||
assert msg_in.text == text2
|
||||
assert ac1.get_config("addr") in [x.addr for x in msg_in.chat.get_contacts()]
|
||||
|
||||
@pytest.mark.xfail(reason="Quorum rule is not used yet")
|
||||
def test_prefer_encrypt(self, acfactory, lp):
|
||||
"""Test quorum rule for encryption preference in 1:1 and group chat."""
|
||||
ac1, ac2, ac3 = acfactory.get_many_online_accounts(3)
|
||||
|
||||
Reference in New Issue
Block a user