mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 10:02:47 +03:00
chat: ensure joined chats are loaded before joining
This commit is contained in:
parent
880ff81589
commit
4389c635d1
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user