summaryrefslogtreecommitdiff
path: root/src/ui/members.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/members.c')
-rw-r--r--src/ui/members.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ui/members.c b/src/ui/members.c
index c500d58..710c0d6 100644
--- a/src/ui/members.c
+++ b/src/ui/members.c
@@ -124,7 +124,14 @@ _members_iterate_print(UI_MEMBERS_Handle *members,
wmove(members->window, y, 0);
const char *name = GNUNET_CHAT_contact_get_name(contact);
- wprintw(members->window, "%s", name);
+ const char *key = GNUNET_CHAT_contact_get_key(contact);
+
+ size_t key_len = key? strlen(key) : 0;
+
+ if (key_len > 4)
+ wprintw(members->window, "[%s]: %s", key + (key_len - 4), name);
+ else
+ wprintw(members->window, "%s", name);
if (selected) wattroff(members->window, attrs_select);
}