Bugfix. Promise.resolve is not a constructor

This commit is contained in:
Kim Alvefur 2020-09-25 19:29:23 +02:00 committed by JC Brand
parent 65ad33ec81
commit 76b488a672

View File

@ -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;