Fix bug with removing matrix listeners
This commit is contained in:
parent
72550961e5
commit
31a52c15bd
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ export function createMatrixActionCreator(matrixClient, eventId) {
|
|||
return () => {
|
||||
matrixClient.on(eventId, listener);
|
||||
return () => {
|
||||
matrixClient.removeListener(listener);
|
||||
matrixClient.removeListener(eventId, listener);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue