<li {if="$me"}class="oppose"{/if}>
    {if="$muc"}
        <span class="primary icon bubble" onclick="Chat.quoteMUC(this.dataset.resource, true);"></span>
        <span class="control icon bubble"></span>
    {else}
        {$url = $contact->getPhoto()}
        {if="$url"}
            <span class="{if="$me"}control{else}primary{/if} icon bubble">
                {if="$me == null"}
                    <a href="#" onclick="Chat_ajaxGetContact('{$contact->jid}')">
                {/if}
                    <img src="{$url}">
                {if="$me == null"}</a>{/if}
            </span>
        {else}
            <span class="{if="$me"}control{else}primary{/if} icon bubble color {$contact->jid|stringToColor}">
                {if="$me == null"}
                    <a href="#" onclick="Chat_ajaxGetContact('{$contact->jid}')">
                {/if}
                    <i class="material-icons">people</i>
                {if="$me == null"}</a>{/if}
            </span>
        {/if}
    {/if}

    <div class="bubble">
        <div>
            <p></p>
            <span class="info"></span>
        </div>
    </div>
</li>

<li {if="$me"}class="oppose"{/if}>
    {if="$muc"}
        <span class="primary icon bubble" onclick="Chat.quoteMUC(this.dataset.resource, true);"></span>
        <span class="control icon bubble"></span>
    {else}
        {$url = $contact->getPhoto()}
        {if="$url"}
            <span class="{if="$me"}control{else}primary{/if} icon bubble">
                {if="$me == null"}
                    <a href="#" onclick="Chat_ajaxGetContact('{$contact->jid}')">
                {/if}
                    <img src="{$url}">
                {if="$me == null"}</a>{/if}
            </span>
        {else}
            <span class="{if="$me"}control{else}primary{/if} icon bubble color {$contact->jid|stringToColor}">
                {if="$me == null"}
                    <a href="#" onclick="Chat_ajaxGetContact('{$contact->jid}')">
                {/if}
                    <i class="material-icons">person</i>
                {if="$me == null"}</a>{/if}
            </span>
        {/if}
    {/if}

    <div class="bubble">
        <div>
            <p></p>
            <span class="info"></span>
        </div>
    </div>
</li>

Fix icon chat when the avatar is not set
Fix icon chat when the avatar is not set
