Fix bug with removing matrix listeners

pull/21833/head
Luke Barnard 2017-12-08 10:55:29 +00:00
parent 72550961e5
commit 31a52c15bd
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ export function createMatrixActionCreator(matrixClient, eventId) {
return () => {
matrixClient.on(eventId, listener);
return () => {
matrixClient.removeListener(listener);
matrixClient.removeListener(eventId, listener);
}
}
}