Describe the bug
When using MatrixClient.on() or MatrixClient.addListener(), every listener is saved as anonymous function or anonymous async function.
using MatrixClient.off() or MatrixClient.removeListener doesn't remove it because listener is not find.
Expected behavior
With client.listeners(), i expect to have a list with an id or a name for every listener that allow me to remove easily the one that i need to remove.
Describe the bug When using MatrixClient.on() or MatrixClient.addListener(), every listener is saved as anonymous function or anonymous async function. using MatrixClient.off() or MatrixClient.removeListener doesn't remove it because listener is not find.
To Reproduce
Expected behavior With client.listeners(), i expect to have a list with an id or a name for every listener that allow me to remove easily the one that i need to remove.