changeset 391:841045d5a937

common: when possible, a more user friendly name is displayed for the contact, instead of the jid.
author Goffi <goffi@goffi.org>
date Thu, 06 Feb 2020 21:16:21 +0100
parents 3d009fec34da
children d7948d2c1cc6
files cagou/kv/common.kv
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/kv/common.kv	Thu Feb 06 21:16:21 2020 +0100
+++ b/cagou/kv/common.kv	Thu Feb 06 21:16:21 2020 +0100
@@ -31,7 +31,7 @@
         size_hint: None, None
         text_size: root.base_width, None
         size: self.texture_size
-        text: root.jid
+        text: root.data.get('nick', root.jid.node or root.jid)
         bold: True
         valign: 'middle'
         halign: 'center'