roster: unregisterPresenceHandler must be wrapped in arrow function

This commit is contained in:
JC Brand 2019-10-11 10:54:30 +02:00
parent 86a6164713
commit 5383d65d5a

View File

@ -917,7 +917,7 @@ converse.plugins.add('converse-roster', {
});
});
_converse.api.listen.on('beforeTearDown', _converse.unregisterPresenceHandler());
_converse.api.listen.on('beforeTearDown', () => _converse.unregisterPresenceHandler());
_converse.api.waitUntil('rosterContactsFetched').then(() => {
_converse.roster.on('add', (contact) => {