fixed members blinking on room change

This commit is contained in:
mushka 2022-10-10 16:02:36 +03:00
parent 513f1aab67
commit f6f6bd871e

View File

@ -56,6 +56,7 @@ const Members = ({
useEffect(async () => {
if (!selection.isRoom) return;
if (selectionParentRoom && selectionParentRoom.id === selection.id) return;
setMembers(null);
const fetchedMembers = await fetchMembers(selection.id);
setSelectionParentRoom({
...selection,