mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-03 14:06:03 +00:00
fd14739faf
* directory: re-invite owner who left owners' group The /invite command's alreadyMember check treated any GroupMember row as a current member, including rows with status GSMemLeft or GSMemRemoved. Owners who had left the owners' group could therefore not be re-invited. Use memberCurrent to only block re-invite when the member is actually in the group. * directory tests: account for admin notification and renamed group on re-invite The owners' group has no GroupReg by design, so when an owner leaves it the directory service notifies admins with "Error: contact left, group: N owners, group registration not found" - expected behavior, but the test for re-inviting an owner who left the owners' group did not consume this DM and failed at bracket cleanup. The test also assumed bob's new invitation would land in #owners, but the chat client disambiguates it to #owners_1 because bob's old left membership of #owners is still present locally. Consume the admin DM explicitly and update the invitation assertions to #owners_1 / /j owners_1. --------- Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>