fix(members): fix list showing all members when missing encryption keys (#16625)

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
This commit is contained in:
Jonathan Rainville 2024-10-29 10:32:19 -04:00 committed by GitHub
parent 3532cca688
commit e64877caec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -242,6 +242,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