deltachat-bot / team-bot

This bot connects your team to the outside and makes it addressable.
ISC License
1 stars 1 forks source link

Allow crew members to leave a relay group #11

Closed missytake closed 1 month ago

missytake commented 1 month ago

Expected Behavior

If a crew member leaves a relay group, it continues to work as a relay group.

Actual Behavior

After a crew member left, RelayPlugin.is_relay_group() returns False on chats where not every crew member is a member of; therefore it creates a new relay group for the incoming message. This causes a lot of chaos and prevents crew members from leaving relay groups.

Steps to reproduce

  1. Create a relay group by sending a message to the team-bot
  2. Leave it
  3. Write a message to the relay group
  4. Notice a new relay group being created for your message