Skip to content

Commit

Permalink
fix(members): fix list showing all members when missing encryption ke…
Browse files Browse the repository at this point in the history
…ys (#16654)

Fixes #16614

The problem was that I was missing encryption keys for some channels, but since I'm an admin, I still have access, so I could see the member list and it was showing me all members because of a missing condition in the code
  • Loading branch information
jrainville authored Oct 30, 2024
1 parent 9e70e69 commit 189d016
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ method updateMembersList*(self: Module, membersToReset: seq[ChatMember] = @[]) =
if chat.members.len > 0:
members = chat.members
else:
if chat.missingEncryptionKey:
# We don't have the enryption keys, so we can't show the members
return
# The channel now has a permisison, but the re-eval wasn't performed yet. Show all members for now
members = myCommunity.members

Expand Down

0 comments on commit 189d016

Please sign in to comment.