From 772938852ba268845a922b9e1911669ca3bbd52d Mon Sep 17 00:00:00 2001 From: Mohamed Amine Krout Date: Wed, 11 Dec 2024 15:00:37 +0100 Subject: [PATCH] fix: Restore displaying chat icon in space drawer options - EXO-75690 (#782) (#786) 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'; });