From 83701d002ff619444900a92a6f88146ea15cebd7 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Mon, 28 Nov 2022 16:54:08 -0300 Subject: [PATCH] Fix observeRoom logic --- app/views/RoomView/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/RoomView/index.tsx b/app/views/RoomView/index.tsx index 77295847d..7b67bb4ad 100644 --- a/app/views/RoomView/index.tsx +++ b/app/views/RoomView/index.tsx @@ -286,7 +286,8 @@ class RoomView extends React.Component { this.setHeader(); - if ('id' in room) { + // TODO: Since we won't be using observables directly anymore, should we remove this? + if ('observe' in room) { // @ts-ignore TODO: type guard isn't helping here :( this.observeRoom(room); } else if (this.rid) {