mirror of
https://github.com/vector-im/element-web.git
synced 2026-02-04 07:11:48 +01:00
Fix ThreadsRoomNotificationState listeners removal on destroy (#7558)
This commit is contained in:
parent
4028b5ef2e
commit
c612014936
@ -41,7 +41,7 @@ export class ThreadsRoomNotificationState extends NotificationState implements I
|
||||
|
||||
public destroy(): void {
|
||||
super.destroy();
|
||||
this.room.on(ThreadEvent.New, this.onNewThread);
|
||||
this.room.off(ThreadEvent.New, this.onNewThread);
|
||||
for (const [, notificationState] of this.threadsState) {
|
||||
notificationState.off(NotificationStateEvents.Update, this.onThreadUpdate);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user