Bugfix. Fall back to JID if nick is not set

This commit is contained in:
JC Brand 2020-03-25 09:00:34 +01:00
parent 6a66ba7158
commit 42235167f8

View File

@ -214,7 +214,7 @@ export default (o) => {
${ (o.users_with_affiliation instanceof Error) ?
html`<li class="list-group-item">${o.users_with_affiliation.message}</li>` :
(o.users_with_affiliation || []).map(item => (item.nick.match(o.affiliations_filter) ? affiliation_list_item(Object.assign({item}, o)) : '')) }
(o.users_with_affiliation || []).map(item => ((item.nick || item.jid).match(o.affiliations_filter) ? affiliation_list_item(Object.assign({item}, o)) : '')) }
</ul>
</div>
</div>