Skip to content

Commit

Permalink
fix: Restore displaying chat icon in space drawer options - EXO-75690 (
Browse files Browse the repository at this point in the history
…#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.
  • Loading branch information
mkrout authored Dec 11, 2024
1 parent 12595ac commit 7729388
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
});
Expand Down

0 comments on commit 7729388

Please sign in to comment.