Bugfix. TypeError: cannot read property 'length' of undefined

This commit is contained in:
JC Brand 2021-06-14 10:49:27 +02:00
parent bccd4a81b8
commit 543cf9066a

View File

@ -287,7 +287,7 @@ export default {
* }
*/
async supports (feature, jid) {
const features = await api.disco.features.get(feature, jid);
const features = await api.disco.features.get(feature, jid) || [];
return features.length > 0;
},