From 9f6170b7c714db9e93c46db4ff755d1377d73654 Mon Sep 17 00:00:00 2001 From: Mohamed Amine Krout Date: Thu, 5 Dec 2024 19:19:40 +0100 Subject: [PATCH] fix: Restore displaying chat icon in space drawer options - EXO-75690 (#782) Prior to this fix, the chat icon in space drawer is not dispalyed any more, this is due to a change on the js spaceService.isSpaceMember method that was changed to return true or false instead of an object with isMember property. This commit update the popover chat button code according to the changes done on the space service. --- .../src/main/webapp/vue-app/components/PopoverChatButton.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/src/main/webapp/vue-app/components/PopoverChatButton.vue b/application/src/main/webapp/vue-app/components/PopoverChatButton.vue index f8e39afaf1..3cd39a82ab 100644 --- a/application/src/main/webapp/vue-app/components/PopoverChatButton.vue +++ b/application/src/main/webapp/vue-app/components/PopoverChatButton.vue @@ -43,7 +43,7 @@ export default { chatServices.getUserSettings().then(userSettings => { this.userSettings = userSettings; this.$spaceService.isSpaceMember(this.identityId, this.userSettings.username).then(data => { - if (data.isMember === 'true') { + if (data) { chatServices.isRoomEnabled(this.userSettings, this.identityId).then(value => { this.spaceChatEnabled = value === 'true'; });