Automattic / Automattic/chatrix

Underlying RoomModelView has no session option.

Open
#293 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
45
Forks
3
PR merge metrics
No merged PRs in 30d

Description

I get an exception when trying to open a room from the list after I enabled the videocalls. As soon as I disable them again I can open the room for chatting.
It appears as if the underlying this._options object doesn't have any "session" key. Thus trying to access callHandler on undefined causes the exception.

Can this be due to a Chatrix configuration problem?

This is the line:

https://github.com/element-hq/hydrogen-web/blob/ea5976e40b8d4974890e67bba3c139012044612c/src/domain/session/room/RoomViewModel.js#L50

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with videocalls enabled: open a room from the list and compare it with videocalls disabled. Inspect the referenced RoomViewModel.js line 50 and trace how the underlying view receives its options. Done means opening a room works with videocalls enabled without an exception when callHandler is accessed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.