diff --git a/src/headless/plugins/blocking/api.js b/src/headless/plugins/blocking/api.js index 11df3692ae..f51cede58f 100644 --- a/src/headless/plugins/blocking/api.js +++ b/src/headless/plugins/blocking/api.js @@ -22,9 +22,10 @@ export default { * @private * @method api.refreshBlocklist */ - refreshBlocklist () { + async refreshBlocklist () { log.debug("refreshing blocklist"); - if (!this.isBlockingAvailable()) { + const available = await this.isBlockingAvailable(); + if (!available) { log.debug("XEP-0191 NOT available, not refreshing..."); api.trigger('blockListFetched', []); return