From bbee7e91eb9897630566631e9eeeb4437fa5a729 Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Thu, 7 Nov 2024 14:48:38 +0100 Subject: [PATCH] fix: non-moderators should not query participants from server Signed-off-by: Maksim Sukharev --- src/components/RightSidebar/Participants/ParticipantsTab.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/RightSidebar/Participants/ParticipantsTab.vue b/src/components/RightSidebar/Participants/ParticipantsTab.vue index dd6ca179178..fa7a8099c2e 100644 --- a/src/components/RightSidebar/Participants/ParticipantsTab.vue +++ b/src/components/RightSidebar/Participants/ParticipantsTab.vue @@ -267,6 +267,9 @@ export default { }, handleInput() { + if (!this.canAdd) { + return + } this.contactsLoading = true this.searchResults = [] this.debounceFetchSearchResults()