mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-16 01:31:30 +03:00
Remove excessive null check
Co-authored-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
49b61d512f
commit
14f94c3883
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
|||
* should not be done when the space switch is done implicitly due to another event like switching room.
|
||||
*/
|
||||
public async setActiveSpace(space: Room | null, contextSwitch = true) {
|
||||
if (space && !space?.isSpaceRoom()) return;
|
||||
if (!space?.isSpaceRoom()) return;
|
||||
if (space === this.activeSpace) {
|
||||
const notificationState = this.getNotificationState(space ? space.roomId : HOME_SPACE);
|
||||
if (notificationState.count) {
|
||||
|
|
Loading…
Reference in a new issue