chat: ensure joined chats are loaded before joining

This commit is contained in:
Liam Fitzgerald 2020-09-02 11:20:00 +10:00
parent 880ff81589
commit 4389c635d1

View File

@ -194,6 +194,11 @@ export default class ChatApp extends React.Component<ChatAppProps, {}> {
render={(props) => { render={(props) => {
let station = `/${props.match.params.ship}/${props.match.params.station}`; let station = `/${props.match.params.ship}/${props.match.params.station}`;
// ensure we know joined chats
if(!chatInitialized) {
return null;
}
return ( return (
<Skeleton <Skeleton
associations={associations} associations={associations}