diff sat_templates/templates/default/chat/message.html @ 228:3195484abd82

updated identities/avatar use, following backend changes
author Goffi <goffi@goffi.org>
date Sun, 19 Apr 2020 22:48:57 +0200
parents e9f0a4215e46
children
line wrap: on
line diff
--- a/sat_templates/templates/default/chat/message.html	Wed Jan 08 14:31:46 2020 +0100
+++ b/sat_templates/templates/default/chat/message.html	Sun Apr 19 22:48:57 2020 +0200
@@ -2,7 +2,7 @@
 
 <p id="{{msg.id}}" class="msg_{{msg.type}} {{'own_msg' if msg.from_ == own_jid.full()}}">
     {%- if msg.type != C.MESS_TYPE_INFO %}
-        {%- set author = identities[msg.from_].nick | default(msg.from_) -%}
+        {%- set author = identities[msg.from_].nicknames[0] | default(msg.from_) -%}
         {{ avatar.avatar(msg.from_, "avatar--float-left") }}
         <span class="msg_header">
             <span class="author">{{author}}</span>