Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit e1d11db

Browse files
Don't show public indicator on spaces (#8607)
1 parent 42f1248 commit e1d11db

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

res/css/views/avatars/_BaseAvatar.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ limitations under the License.
2929
user-select: none;
3030

3131
&.mx_RoomAvatar_isSpaceRoom {
32-
mask-image: unset !important; // override mx_DecoratedRoomAvatar_cutout
33-
3432
&.mx_BaseAvatar_image, .mx_BaseAvatar_image {
3533
border-radius: 8px;
3634
}

src/components/views/rooms/RecentlyViewedButton.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { Action } from "../../../dispatcher/actions";
2727
import DecoratedRoomAvatar from "../avatars/DecoratedRoomAvatar";
2828
import { ViewRoomPayload } from "../../../dispatcher/payloads/ViewRoomPayload";
2929
import { roomContextDetailsText } from "../../../utils/i18n-helpers";
30+
import RoomAvatar from "../avatars/RoomAvatar";
3031

3132
const RecentlyViewedButton = () => {
3233
const tooltipRef = useRef<InteractiveTooltip>();
@@ -50,7 +51,10 @@ const RecentlyViewedButton = () => {
5051
tooltipRef.current?.hideTooltip();
5152
}}
5253
>
53-
<DecoratedRoomAvatar room={crumb} avatarSize={24} tooltipProps={{ tabIndex: -1 }} />
54+
{ crumb.isSpaceRoom()
55+
? <RoomAvatar room={crumb} width={24} height={24} />
56+
: <DecoratedRoomAvatar room={crumb} avatarSize={24} tooltipProps={{ tabIndex: -1 }} />
57+
}
5458
<span className="mx_RecentlyViewedButton_entry_label">
5559
<div>{ crumb.name }</div>
5660
{ contextDetails && <div className="mx_RecentlyViewedButton_entry_spaces">

0 commit comments

Comments
 (0)