mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-28 09:52:16 +02:00
Fix bug with removing matrix listeners
This commit is contained in:
parent
72550961e5
commit
31a52c15bd
@ -66,7 +66,7 @@ export function createMatrixActionCreator(matrixClient, eventId) {
|
||||
return () => {
|
||||
matrixClient.on(eventId, listener);
|
||||
return () => {
|
||||
matrixClient.removeListener(listener);
|
||||
matrixClient.removeListener(eventId, listener);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user