{% macro avatar(jid, class="is-48x48") %} {%- if identities is defined -%} {% set identity = identities.get(jid) %} {%- if identity.avatar.filename %}