mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 18:55:58 +03:00
Fix freeze/crash when 1:1 calling (#8057)
* Fix freeze/crash when 1:1 calling Don't log call feed objects because they reference the client and it causes the client to get logged too. * Log purpose too
This commit is contained in:
parent
744eeb53fe
commit
cc9651089e
2 changed files with 8 additions and 2 deletions
|
@ -93,7 +93,10 @@ export default class AudioFeed extends React.Component<IProps, IState> {
|
|||
// load() explicitly, it shouldn't be a problem. - Dave
|
||||
await element.load();
|
||||
} catch (e) {
|
||||
logger.info("Failed to play media element with feed", this.props.feed, e);
|
||||
logger.info(
|
||||
`Failed to play media element with feed for userId ` +
|
||||
`${this.props.feed.userId} with purpose ${this.props.feed.purpose}`, e,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -138,7 +138,10 @@ export default class VideoFeed extends React.PureComponent<IProps, IState> {
|
|||
// load() explicitly, it shouldn't be a problem. - Dave
|
||||
await element.play();
|
||||
} catch (e) {
|
||||
logger.info("Failed to play media element with feed", this.props.feed, e);
|
||||
logger.info(
|
||||
`Failed to play media element with feed for userId ` +
|
||||
`${this.props.feed.userId} with purpose ${this.props.feed.purpose}`, e,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue