mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-27 01:11:52 +02:00
Merge pull request #3654 from matrix-org/dbkr/call_crash_workaround
Workaround for soft-crash with calls on startup
This commit is contained in:
commit
1a7d298319
@ -90,6 +90,13 @@ module.exports = createReactClass({
|
||||
}
|
||||
} else {
|
||||
call = CallHandler.getAnyActiveCall();
|
||||
// Ignore calls if we can't get the room associated with them.
|
||||
// I think the underlying problem is that the js-sdk sends events
|
||||
// for calls before it has made the rooms available in the store,
|
||||
// although this isn't confirmed.
|
||||
if (MatrixClientPeg.get().getRoom(call.roomId) === null) {
|
||||
call = null;
|
||||
}
|
||||
this.setState({ call: call });
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user