You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Fix bug that would cause failed to decrypt messages in non-encrypted rooms
This commit is contained in:
@@ -143,9 +143,8 @@ export default class MVideoBody extends React.PureComponent<IProps, IState> {
|
||||
}
|
||||
|
||||
async _videoOnPlay() {
|
||||
const autoplay = SettingsStore.getValue("autoplayGifsAndVideos") as boolean;
|
||||
if (autoplay || this.state.decryptedUrl || this.state.fetchingData || this.state.error) {
|
||||
// The video has or will have the data.
|
||||
if (this._getContentUrl() || this.state.fetchingData || this.state.error) {
|
||||
// We have the file, we are fetching the file, or there is an error.
|
||||
return;
|
||||
}
|
||||
this.setState({
|
||||
@@ -164,6 +163,7 @@ export default class MVideoBody extends React.PureComponent<IProps, IState> {
|
||||
this.setState({
|
||||
decryptedUrl: contentUrl,
|
||||
decryptedBlob: decryptedBlob,
|
||||
fetchingData: false,
|
||||
});
|
||||
this.props.onHeightChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user