From 5383d65d5aeb8c468ac3e0520489841fc8e8cc80 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 11 Oct 2019 10:54:30 +0200 Subject: [PATCH] roster: `unregisterPresenceHandler` must be wrapped in arrow function --- src/headless/converse-roster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/headless/converse-roster.js b/src/headless/converse-roster.js index ba6f081de..ae4c5987e 100644 --- a/src/headless/converse-roster.js +++ b/src/headless/converse-roster.js @@ -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) => {