Update src/components/views/rooms/RoomList.tsx

Co-authored-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
Michael Telatynski 2020-11-10 01:22:30 +00:00 committed by GitHub
parent 27d276715e
commit a5d827c446
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -332,6 +332,7 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
return p; return p;
}, [] as TagID[]); }, [] as TagID[]);
// show a skeleton UI if the user is in no rooms
const showSkeleton = Object.values(RoomListStore.instance.unfilteredLists).every(list => !list?.length); const showSkeleton = Object.values(RoomListStore.instance.unfilteredLists).every(list => !list?.length);
for (const orderedTagId of tagOrder) { for (const orderedTagId of tagOrder) {