diff --git a/src/headless/converse-core.js b/src/headless/converse-core.js index 2aa1c395f..718efd3e5 100644 --- a/src/headless/converse-core.js +++ b/src/headless/converse-core.js @@ -929,7 +929,7 @@ export const api = _converse.api = { } } else { _converse.connection.sendIQ(stanza); - promise = new Promise.resolve(); + promise = Promise.resolve(); } api.trigger('send', stanza); return promise;