Display bookmark name

Have field in struct and display the name in `/bookmark list`.

Regards https://github.com/profanity-im/profanity/issues/697
This commit is contained in:
Michael Vetter
2020-05-22 13:56:00 +02:00
parent cb78ee4665
commit fad296b79e
3 changed files with 10 additions and 1 deletions

View File

@@ -696,7 +696,11 @@ cons_show_bookmarks(const GList *list)
if (muc_active(item->barejid) && roomwin) {
presence_colour = THEME_ONLINE;
}
win_print(console, presence_colour, "-", " %s", item->barejid);
if (item->name) {
win_print(console, presence_colour, "-", " %s - %s", item->name, item->barejid);
} else {
win_print(console, presence_colour, "-", " %s", item->barejid);
}
if (item->nick) {
win_append(console, presence_colour, "/%s", item->nick);
}