Compare commits

...

2 Commits

Author SHA1 Message Date
Reinaldo Neto f878a17e0d update the state on the main room if you join from thread 2023-01-30 16:46:27 -03:00
Reinaldo Neto e87e11494a [FIX] Show Join button in threads belong to a room not joined 2023-01-30 16:46:27 -03:00
1 changed files with 2 additions and 2 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();
} }
} }
@ -1425,7 +1425,7 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
</View> </View>
); );
} }
if (!joined && !this.tmid) { if (!joined) {
return ( return (
<View style={styles.joinRoomContainer} key='room-view-join' testID='room-view-join'> <View style={styles.joinRoomContainer} key='room-view-join' testID='room-view-join'>
<Text <Text