roster: unregisterPresenceHandler
must be wrapped in arrow function
This commit is contained in:
parent
86a6164713
commit
5383d65d5a
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user