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