From 843b38f95195224b47799eaf9a3ee8b8665a3401 Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Fri, 20 Sep 2024 13:13:37 +0200 Subject: [PATCH] feat: add handling of archived conversations Signed-off-by: Maksim Sukharev --- src/__mocks__/capabilities.ts | 2 ++ .../ConversationsList/Conversation.vue | 30 ++++++++++++++++++- src/services/conversationsService.js | 20 +++++++++++++ src/store/conversationsStore.js | 25 +++++++++++++++- 4 files changed, 75 insertions(+), 2 deletions(-) diff --git a/src/__mocks__/capabilities.ts b/src/__mocks__/capabilities.ts index fc2f6fe0998..a6f883781f5 100644 --- a/src/__mocks__/capabilities.ts +++ b/src/__mocks__/capabilities.ts @@ -84,6 +84,7 @@ export const mockedCapabilities: Capabilities = { 'chat-reference-id', 'mention-permissions', 'edit-messages-note-to-self', + 'archived-conversations', ], 'features-local': [ 'favorites', @@ -95,6 +96,7 @@ export const mockedCapabilities: Capabilities = { 'avatar', 'remind-me-later', 'note-to-self', + 'archived-conversations', ], config: { attachments: { diff --git a/src/components/LeftSidebar/ConversationsList/Conversation.vue b/src/components/LeftSidebar/ConversationsList/Conversation.vue index b87ab7fac08..cf6648684bb 100644 --- a/src/components/LeftSidebar/ConversationsList/Conversation.vue +++ b/src/components/LeftSidebar/ConversationsList/Conversation.vue @@ -57,6 +57,17 @@ {{ t('spreed', 'Conversation settings') }} + + + {{ labelArchive }} + +