Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Prevent 0-member/null room_version rooms from appearing in group room queries #7465

Merged
merged 10 commits into from
May 15, 2020

Conversation

anoadragon453
Copy link
Member

@anoadragon453 anoadragon453 commented May 11, 2020

Fixes #4891

Prevents group servlets from acting on rooms without any members (dead rooms) or with a NULL/empty room_version string.

The added docstrings may help in our community rewrite later on as we'll have a better understanding of the current community functionality.

TODO:

  • Also check local_users_in_room is not 0.

I'm not sure whether this is a plaster on an existing problem or not, but either way it's a quick fix to a communities problems that will eventually be written over with comms v2 anyways.

@anoadragon453 anoadragon453 requested review from a team and removed request for a team May 11, 2020 19:34
@anoadragon453 anoadragon453 self-assigned this May 14, 2020
@anoadragon453 anoadragon453 requested a review from a team May 14, 2020 17:22
@anoadragon453 anoadragon453 merged commit 16090a0 into develop May 15, 2020
@anoadragon453 anoadragon453 deleted the anoa/fix_broken_communities branch May 15, 2020 16:17
phil-flex pushed a commit to phil-flex/synapse that referenced this pull request Jun 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants