element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.03k stars 1.96k forks source link

Stuck on semi unread (muted/events) #22296

Open chagai95 opened 2 years ago

chagai95 commented 2 years ago

Steps to reproduce

  1. Not sure, might be related to virtual rooms.
  2. Click on the semi unread icon:

image Here is a video showing the problem: https://aarenet-my.sharepoint.com/:v:/p/chagai_friedlander/EczaQkfh0PRFp6QYrHQX-OQBLrX0Td2UU7MQEQ5budxUHQ

Outcome

What did you expect?

To go to the semi unread room

What happened instead?

I get this error in the console:

MatrixChat.tsx:900 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '0')
    at MatrixChat.viewRoom (MatrixChat.tsx:900:40)
    at Object.ID_36 (MatrixChat.tsx:659:38)
    at MatrixDispatcher._invokeCallback (Dispatcher.js:198:1)
    at MatrixDispatcher.dispatch (Dispatcher.js:174:1)

seems like there is no room id in the room info here which is why it then throws the error here

Operating system

Windows

Browser information

Version 100.0.4896.127 (Official Build) (64-bit)

URL for webapp

https://develop.element.io

Application version

Develop branch

Homeserver

private server

Will you send logs?

yes

SimonBrandner commented 2 years ago

Something weird is happening either in https://github.com/matrix-org/matrix-react-sdk/blob/develop/src/stores/spaces/SpaceStore.ts#L177 or in https://github.com/matrix-org/matrix-react-sdk/blob/develop/src/components/views/spaces/SpaceTreeLevel.tsx#L87