mirror of
https://github.com/vector-im/element-web.git
synced 2026-03-01 19:41:15 +01:00
refactor: use FlatVirtualizedList instead of VirtualizedList
This commit is contained in:
parent
78df2dd3a4
commit
f3b7e0cbc0
@ -12,7 +12,7 @@ import { isEqual } from "lodash";
|
||||
import { RoomListItemView, type Room } from "../RoomListItemView";
|
||||
import { useViewModel } from "../../viewmodel";
|
||||
import { _t } from "../../utils/i18n";
|
||||
import { VirtualizedList, type VirtualizedListContext } from "../../utils/VirtualizedList";
|
||||
import { FlatVirtualizedList, type VirtualizedListContext } from "../../utils/VirtualizedList";
|
||||
import type { RoomListViewModel } from "../RoomListView";
|
||||
|
||||
/**
|
||||
@ -174,7 +174,7 @@ export function VirtualizedRoomListView({ vm, renderAvatar, onKeyDown }: Virtual
|
||||
);
|
||||
|
||||
return (
|
||||
<VirtualizedList
|
||||
<FlatVirtualizedList
|
||||
context={context}
|
||||
scrollIntoViewOnChange={scrollIntoViewOnChange}
|
||||
// If fixedItemHeight is not set and initialTopMostItemIndex=undefined, virtuoso crashes
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user