Skip to content

Commit

Permalink
fix: hide archive-conversations feature from 20.1.0rc1
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Nov 14, 2024
1 parent 51021af commit 18fed7a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/__mocks__/capabilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const mockedCapabilities: Capabilities = {
'edit-messages-note-to-self',
'archived-conversations',
'talk-polls-drafts',
'archived-conversations-v2',
],
'features-local': [
'favorites',
Expand All @@ -98,6 +99,7 @@ export const mockedCapabilities: Capabilities = {
'remind-me-later',
'note-to-self',
'archived-conversations',
'archived-conversations-v2',
],
config: {
attachments: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ import { CALL, CONFIG, PARTICIPANT, CONVERSATION } from '../../constants.js'
import { getTalkConfig, hasTalkFeature } from '../../services/CapabilitiesManager.ts'
import { useSettingsStore } from '../../stores/settings.js'
const supportsArchive = hasTalkFeature('local', 'archived-conversations')
const supportsArchive = hasTalkFeature('local', 'archived-conversations-v2')
export default {
name: 'ConversationSettingsDialog',
Expand Down
2 changes: 1 addition & 1 deletion src/components/ConversationSettings/DangerZone.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js'
import { hasTalkFeature } from '../../services/CapabilitiesManager.ts'
const supportsArchive = hasTalkFeature('local', 'archived-conversations')
const supportsArchive = hasTalkFeature('local', 'archived-conversations-v2')
export default {
name: 'DangerZone',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ import { PARTICIPANT } from '../../../constants.js'
import { hasTalkFeature } from '../../../services/CapabilitiesManager.ts'
import { copyConversationLinkToClipboard } from '../../../utils/handleUrl.ts'
const supportsArchive = hasTalkFeature('local', 'archived-conversations')
const supportsArchive = hasTalkFeature('local', 'archived-conversations-v2')
export default {
name: 'Conversation',
Expand Down
2 changes: 1 addition & 1 deletion src/components/LeftSidebar/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ const canModerateSipDialOut = hasTalkFeature('local', 'sip-support-dialout')
&& getTalkConfig('local', 'call', 'sip-dialout-enabled')
&& getTalkConfig('local', 'call', 'can-enable-sip')
const canNoteToSelf = hasTalkFeature('local', 'note-to-self')
const supportsArchive = hasTalkFeature('local', 'archived-conversations')
const supportsArchive = hasTalkFeature('local', 'archived-conversations-v2')
export default {
name: 'LeftSidebar',
Expand Down
2 changes: 1 addition & 1 deletion src/utils/conversation.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { CONVERSATION, PARTICIPANT } from '../constants.js'
import { hasTalkFeature } from '../services/CapabilitiesManager.ts'

const supportsArchive = hasTalkFeature('local', 'archived-conversations')
const supportsArchive = hasTalkFeature('local', 'archived-conversations-v2')

/**
* check if the conversation has unread messages
Expand Down

0 comments on commit 18fed7a

Please sign in to comment.