Fix observeRoom logic

This commit is contained in:
Diego Mello 2022-11-28 16:54:08 -03:00
parent c0d5a84ccd
commit 83701d002f
1 changed files with 2 additions and 1 deletions

View File

@ -286,7 +286,8 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
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) {