update the state on the main room if you join from thread
This commit is contained in:
parent
e87e11494a
commit
f878a17e0d
|
@ -515,7 +515,7 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
|
||||||
if (data[0]) {
|
if (data[0]) {
|
||||||
if (this.subObserveQuery && this.subObserveQuery.unsubscribe) {
|
if (this.subObserveQuery && this.subObserveQuery.unsubscribe) {
|
||||||
this.observeRoom(data[0]);
|
this.observeRoom(data[0]);
|
||||||
this.setState({ room: data[0] });
|
this.setState({ room: data[0], joined: true });
|
||||||
this.subObserveQuery.unsubscribe();
|
this.subObserveQuery.unsubscribe();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue