Fix EventListSummary not unbinding event listeners (#33006)
This commit is contained in:
committed by
GitHub
parent
0a8ef85f2f
commit
b790019ecc
@@ -174,7 +174,7 @@ export default class EventListSummary extends React.Component<Props, State> {
|
||||
|
||||
private unbindSentinelListeners(events: MatrixEvent[]): void {
|
||||
for (const event of events) {
|
||||
event.on(MatrixEventEvent.SentinelUpdated, this.onEventSentinelUpdated);
|
||||
event.off(MatrixEventEvent.SentinelUpdated, this.onEventSentinelUpdated);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user