mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
Improve group updates
- Check that member modifying the group is in the group themselves. It is not allowed to readd yourself to the group or remove someone without being in the group themselves. - Unify code for group member addition and removal. Removing a member now recreates the group member list from the To: field. Removed member from the Chat-Group-Member-Removed was in the To: field in previous Delta Chat versions, so it is excluded explicity. New versions of Delta Chat put removed member in Bcc: instead. - Apply avatar changes after updating the group member list. This allows to check that the contact modifying the avatar is actually a group member.
This commit is contained in:
@@ -2905,7 +2905,8 @@ class TestGroupStressTests:
|
||||
lp.sec("ac2: check that ac3 is removed")
|
||||
msg = ac2._evtracker.wait_next_incoming_message()
|
||||
|
||||
assert msg.chat.num_contacts() == chat.num_contacts()
|
||||
assert chat.num_contacts() == 2
|
||||
assert msg.chat.num_contacts() == 2
|
||||
acfactory.dump_imap_summary(sys.stdout)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user