Skip to content

Commit f47d21c

Browse files
authored
Merge pull request #13770 from nextcloud/fix/noid/archive-v2
2 parents 51021af + 18fed7a commit f47d21c

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

src/__mocks__/capabilities.ts

+2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export const mockedCapabilities: Capabilities = {
8686
'edit-messages-note-to-self',
8787
'archived-conversations',
8888
'talk-polls-drafts',
89+
'archived-conversations-v2',
8990
],
9091
'features-local': [
9192
'favorites',
@@ -98,6 +99,7 @@ export const mockedCapabilities: Capabilities = {
9899
'remind-me-later',
99100
'note-to-self',
100101
'archived-conversations',
102+
'archived-conversations-v2',
101103
],
102104
config: {
103105
attachments: {

src/components/ConversationSettings/ConversationSettingsDialog.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ import { CALL, CONFIG, PARTICIPANT, CONVERSATION } from '../../constants.js'
132132
import { getTalkConfig, hasTalkFeature } from '../../services/CapabilitiesManager.ts'
133133
import { useSettingsStore } from '../../stores/settings.js'
134134

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

137137
export default {
138138
name: 'ConversationSettingsDialog',

src/components/ConversationSettings/DangerZone.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js'
110110

111111
import { hasTalkFeature } from '../../services/CapabilitiesManager.ts'
112112

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

115115
export default {
116116
name: 'DangerZone',

src/components/LeftSidebar/ConversationsList/Conversation.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ import { PARTICIPANT } from '../../../constants.js'
178178
import { hasTalkFeature } from '../../../services/CapabilitiesManager.ts'
179179
import { copyConversationLinkToClipboard } from '../../../utils/handleUrl.ts'
180180

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

183183
export default {
184184
name: 'Conversation',

src/components/LeftSidebar/LeftSidebar.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ const canModerateSipDialOut = hasTalkFeature('local', 'sip-support-dialout')
381381
&& getTalkConfig('local', 'call', 'sip-dialout-enabled')
382382
&& getTalkConfig('local', 'call', 'can-enable-sip')
383383
const canNoteToSelf = hasTalkFeature('local', 'note-to-self')
384-
const supportsArchive = hasTalkFeature('local', 'archived-conversations')
384+
const supportsArchive = hasTalkFeature('local', 'archived-conversations-v2')
385385

386386
export default {
387387
name: 'LeftSidebar',

src/utils/conversation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import { CONVERSATION, PARTICIPANT } from '../constants.js'
66
import { hasTalkFeature } from '../services/CapabilitiesManager.ts'
77

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

1010
/**
1111
* check if the conversation has unread messages

0 commit comments

Comments
 (0)