From f878a17e0da2bdcda33c545cd248a1fe3be05117 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto Date: Thu, 19 Jan 2023 23:07:25 -0300 Subject: [PATCH] update the state on the main room if you join from thread --- app/views/RoomView/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/RoomView/index.tsx b/app/views/RoomView/index.tsx index 1e4bcd9dd..21782e789 100644 --- a/app/views/RoomView/index.tsx +++ b/app/views/RoomView/index.tsx @@ -515,7 +515,7 @@ class RoomView extends React.Component { if (data[0]) { if (this.subObserveQuery && this.subObserveQuery.unsubscribe) { this.observeRoom(data[0]); - this.setState({ room: data[0] }); + this.setState({ room: data[0], joined: true }); this.subObserveQuery.unsubscribe(); } }