Fix clearing chat on destroy
This commit is contained in:
parent
7f48b0601f
commit
34f8895469
4
.env
4
.env
@ -1,5 +1,5 @@
|
|||||||
API_ID=1025907
|
API_ID=1025907
|
||||||
API_HASH=452b0359b988148995f22ff0f4229750
|
API_HASH=452b0359b988148995f22ff0f4229750
|
||||||
VERSION=1.1.0
|
VERSION=1.1.0
|
||||||
VERSION_FULL=1.1.0 (98)
|
VERSION_FULL=1.1.0 (99)
|
||||||
BUILD=98
|
BUILD=99
|
||||||
|
@ -175,11 +175,13 @@ export class MediaProgressLine extends RangeSelector {
|
|||||||
public removeListeners() {
|
public removeListeners() {
|
||||||
super.removeListeners();
|
super.removeListeners();
|
||||||
|
|
||||||
this.media.removeEventListener('loadeddata', this.onLoadedData);
|
if(this.media) {
|
||||||
this.media.removeEventListener('ended', this.onEnded);
|
this.media.removeEventListener('loadeddata', this.onLoadedData);
|
||||||
this.media.removeEventListener('play', this.onPlay);
|
this.media.removeEventListener('ended', this.onEnded);
|
||||||
this.media.removeEventListener('timeupdate', this.onTimeUpdate);
|
this.media.removeEventListener('play', this.onPlay);
|
||||||
this.streamable && this.media.removeEventListener('progress', this.onProgress);
|
this.media.removeEventListener('timeupdate', this.onTimeUpdate);
|
||||||
|
this.streamable && this.media.removeEventListener('progress', this.onProgress);
|
||||||
|
}
|
||||||
|
|
||||||
if(this.progressRAF) {
|
if(this.progressRAF) {
|
||||||
window.cancelAnimationFrame(this.progressRAF);
|
window.cancelAnimationFrame(this.progressRAF);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user