Fix hover behaviour of space invites

This commit is contained in:
Michael Telatynski 2021-05-04 14:01:26 +01:00
parent d14ea1bd58
commit 4489f8a6ea
2 changed files with 5 additions and 2 deletions

View file

@ -300,12 +300,15 @@ export class SpaceItem extends React.PureComponent<IItemProps, IItemState> {
"collapsed": collapsed,
"hasSubSpaces": childSpaces && childSpaces.length,
});
const isInvite = space.getMyMembership() === "invite";
const classes = classNames("mx_SpaceButton", {
mx_SpaceButton_active: isActive,
mx_SpaceButton_hasMenuOpen: !!this.state.contextMenuPosition,
mx_SpaceButton_narrow: isNarrow,
mx_SpaceButton_invite: isInvite,
});
const notificationState = space.getMyMembership() === "invite"
const notificationState = isInvite
? StaticNotificationState.forSymbol("!", NotificationColor.Red)
: SpaceStore.instance.getNotificationState(space.roomId);