mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-13 02:30: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 noRoomToDisplay = rooms.length === 0;
|
||||||
const [closedCategories, setClosedCategories] = useAtom(useClosedNavCategoriesAtom());
|
const [closedCategories, setClosedCategories] = useAtom(useClosedNavCategoriesAtom());
|
||||||
|
|
||||||
|
const [roomAvatars] = useSetting(settingsAtom, 'roomAvatars');
|
||||||
|
|
||||||
const sortedRooms = useMemo(() => {
|
const sortedRooms = useMemo(() => {
|
||||||
const items = Array.from(rooms).sort(
|
const items = Array.from(rooms).sort(
|
||||||
closedCategories.has(DEFAULT_CATEGORY_ID)
|
closedCategories.has(DEFAULT_CATEGORY_ID)
|
||||||
|
|
@ -321,6 +323,7 @@ export function Home() {
|
||||||
>
|
>
|
||||||
<RoomNavItem
|
<RoomNavItem
|
||||||
room={room}
|
room={room}
|
||||||
|
showAvatar={roomAvatars}
|
||||||
selected={selected}
|
selected={selected}
|
||||||
linkPath={getHomeRoomPath(getCanonicalAliasOrRoomId(mx, roomId))}
|
linkPath={getHomeRoomPath(getCanonicalAliasOrRoomId(mx, roomId))}
|
||||||
notificationMode={getRoomNotificationMode(
|
notificationMode={getRoomNotificationMode(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue