comparison sat_templates/templates/bulma/chat/message.html @ 389:2eaea9a9c234

bulma (chat/message): fix setting of `own_mess` class.
author Goffi <goffi@goffi.org>
date Wed, 13 Dec 2023 22:01:20 +0100
parents 8b990c78d4b5
children
comparison
equal deleted inserted replaced
388:dc83f45625b3 389:2eaea9a9c234
1 {% import 'components/avatar.html' as avatar with context %} 1 {% import 'components/avatar.html' as avatar with context %}
2 2
3 {% if chat_type == "group" %} 3 {% if chat_type == "group" %}
4 {% set own_msg = msg.from_==own_jid %} 4 {% set own_msg = msg.from_==own_local_jid %}
5 {% else %} 5 {% else %}
6 {% set own_msg = msg.from_|bare_jid==own_jid|bare_jid %} 6 {% set own_msg = msg.from_|bare_jid==own_local_jid|bare_jid %}
7 {% endif %} 7 {% endif %}
8 8
9 <div 9 <div
10 id="{{msg.id}}" 10 id="{{msg.id}}"
11 class="media is-chat-message msg_{{msg.type}} {{'own_msg' if own_msg}} {{ 'is-retracted' if msg.extra.retracted }}" 11 class="media is-chat-message msg_{{msg.type}} {{'own_msg' if own_msg}} {{ 'is-retracted' if msg.extra.retracted }}"