Skip to content

Commit

Permalink
Merge pull request #13664 from nextcloud/backport/13660/stable30
Browse files Browse the repository at this point in the history
[stable30] fix: hide 'Browse drafts' button in Note to self and 1-1 rooms
  • Loading branch information
Antreesy authored Oct 29, 2024
2 parents 3469e80 + 552975b commit 01a4e0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/RightSidebar/SharedItems/SharedItemsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 01a4e0f

Please sign in to comment.