Skip to content

Commit

Permalink
fix: hide 'Browse drafts' button in Note to self and 1-1 rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
Antreesy committed Oct 29, 2024
1 parent 6908891 commit e84e2ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/RightSidebar/SharedItems/SharedItemsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ import {
sharedItemTitle,
} from './sharedItemsConstants.js'
import { hasTalkFeature } from '../../../services/CapabilitiesManager.ts'
import { CONVERSATION } from '../../../constants.js'
import { EventBus } from '../../../services/EventBus.ts'
import { useSharedItemsStore } from '../../../stores/sharedItems.js'
import { useSidebarStore } from '../../../stores/sidebar.js'
Expand Down Expand Up @@ -162,6 +163,8 @@ export default {
canCreatePollDrafts() {
return hasTalkFeature(this.token, 'talk-polls-drafts') && this.$store.getters.isModerator
&& ![CONVERSATION.TYPE.NOTE_TO_SELF, CONVERSATION.TYPE.ONE_TO_ONE, CONVERSATION.TYPE.ONE_TO_ONE_FORMER]
.includes(this.conversation.type)
},
loading() {
Expand Down

0 comments on commit e84e2ac

Please sign in to comment.