mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-12 10:10:29 +03:00
show avatars to home rooms
This commit is contained in:
parent
aae34203f2
commit
c1e43171ef
1 changed files with 3 additions and 0 deletions
|
|
@ -210,6 +210,8 @@ export function Home() {
|
|||
const noRoomToDisplay = rooms.length === 0;
|
||||
const [closedCategories, setClosedCategories] = useAtom(useClosedNavCategoriesAtom());
|
||||
|
||||
const [roomAvatars] = useSetting(settingsAtom, 'roomAvatars');
|
||||
|
||||
const sortedRooms = useMemo(() => {
|
||||
const items = Array.from(rooms).sort(
|
||||
closedCategories.has(DEFAULT_CATEGORY_ID)
|
||||
|
|
@ -321,6 +323,7 @@ export function Home() {
|
|||
>
|
||||
<RoomNavItem
|
||||
room={room}
|
||||
showAvatar={roomAvatars}
|
||||
selected={selected}
|
||||
linkPath={getHomeRoomPath(getCanonicalAliasOrRoomId(mx, roomId))}
|
||||
notificationMode={getRoomNotificationMode(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue