From 6e19a488547dd89c4919f5c2fe0a8ae2c4c19af3 Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Tue, 29 Oct 2024 12:56:54 +0100 Subject: [PATCH] fix: hide 'Browse drafts' button in Note to self and 1-1 rooms Signed-off-by: Maksim Sukharev --- src/components/RightSidebar/SharedItems/SharedItemsTab.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/RightSidebar/SharedItems/SharedItemsTab.vue b/src/components/RightSidebar/SharedItems/SharedItemsTab.vue index 6276a832184..71bfb7bb441 100644 --- a/src/components/RightSidebar/SharedItems/SharedItemsTab.vue +++ b/src/components/RightSidebar/SharedItems/SharedItemsTab.vue @@ -97,6 +97,7 @@ import { sharedItemsWithPreviewLimit, sharedItemTitle, } from './sharedItemsConstants.js' +import { CONVERSATION } from '../../../constants.js' import { hasTalkFeature } from '../../../services/CapabilitiesManager.ts' import { EventBus } from '../../../services/EventBus.ts' import { useSharedItemsStore } from '../../../stores/sharedItems.js' @@ -162,6 +163,7 @@ export default { canCreatePollDrafts() { return hasTalkFeature(this.token, 'talk-polls-drafts') && this.$store.getters.isModerator + && [CONVERSATION.TYPE.GROUP, CONVERSATION.TYPE.PUBLIC].includes(this.conversation.type) }, loading() {