Add license and negate the conditional

This commit is contained in:
Jaiwanth 2021-06-29 19:43:21 +05:30
parent 497d8102e2
commit b0be7d2861
3 changed files with 4 additions and 2 deletions

View file

@ -73,7 +73,7 @@ export default class ReplyThread extends React.Component {
this.unmounted = false;
if (this.props.forExport) {
if (!this.props.forExport) {
this.context.on("Event.replaced", this.onEventReplaced);
this.room = this.context.getRoom(this.props.parentEv.getRoomId());
this.room.on("Room.redaction", this.onRoomRedaction);

View file

@ -7,7 +7,7 @@ import { decryptFile } from "../DecryptFile";
import { mediaFromContent } from "../../customisations/Media";
import { formatFullDateNoDay } from "../../DateUtils";
import { MatrixClient } from "matrix-js-sdk";
import streamToZIP from "./StreamToZip";
import streamToZIP from "./ZipStream";
import * as ponyfill from "web-streams-polyfill/ponyfill"
import "web-streams-polyfill/ponyfill"; // to support streams API for older browsers

View file

@ -1,3 +1,5 @@
// Based on https://github.com/jimmywarting/StreamSaver.js/blob/master/examples/zip-stream.js
/* global ReadableStream */
type TypedArray =