diff options
author | James Booth <boothj5@gmail.com> | 2014-01-21 18:14:20 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-01-21 18:14:20 +0000 |
commit | 6468f40dd97abff10de945c5cc731b078007fe0e (patch) | |
tree | a0e820b42a80f022e2999e217cfabe532fa8653d | |
parent | 7e9c8c02a3a1a7800f7a8306fa7ba6885a5fdd2d (diff) | |
download | profani-tty-6468f40dd97abff10de945c5cc731b078007fe0e.tar.gz |
Convert name to barejid on retrieving win in titlebar for otr messages
fixes #289
-rw-r--r-- | src/ui/titlebar.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c index d66d6c4a..83487aa4 100644 --- a/src/ui/titlebar.c +++ b/src/ui/titlebar.c @@ -29,6 +29,7 @@ #include "ui/ui.h" #include "ui/windows.h" #include "ui/window.h" +#include "roster_list.h" #define CONSOLE_TITLE "Profanity. Type /help for help information." @@ -158,7 +159,8 @@ _title_bar_draw(void) #ifdef HAVE_LIBOTR // show privacy if (current_recipient != NULL) { - ProfWin *current = wins_get_by_recipient(current_recipient); + char *recipient_jid = roster_barejid_from_name(current_recipient); + ProfWin *current = wins_get_by_recipient(recipient_jid); if (current != NULL) { if (current->type == WIN_CHAT) { if (!current->is_otr) { |