From fa85b4ca68af8d6ecb198de2b9faf54cc4881911 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 acdece449ea..20ce0a6598d 100644 --- a/src/components/RightSidebar/Participants/ParticipantsTab.vue +++ b/src/components/RightSidebar/Participants/ParticipantsTab.vue @@ -221,6 +221,9 @@ export default { }, handleInput() { + if (!this.canAdd) { + return + } this.contactsLoading = true this.searchResults = [] this.debounceFetchSearchResults()