update the state on the main room if you join from thread

This commit is contained in:
Reinaldo Neto 2023-01-19 23:07:25 -03:00 committed by Diego Mello
parent e87e11494a
commit f878a17e0d
1 changed files with 1 additions and 1 deletions

View File

@ -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();
} }
} }