diff options
author | James Booth <boothj5@gmail.com> | 2014-04-18 23:29:22 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-04-18 23:29:22 +0100 |
commit | fadad0aeba3258677d1eefa303be5a54fafdda03 (patch) | |
tree | 9ccb14261201cf42f17861f4300eb3c557735b1e /src/ui | |
parent | 2451b7b1ca805c863dfb58b9925f21cb2d51ab58 (diff) | |
download | profani-tty-fadad0aeba3258677d1eefa303be5a54fafdda03.tar.gz |
OTR end messages are now send to recipients not in the roster.
fixes #333
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/titlebar.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c index 395b2c6f..99932024 100644 --- a/src/ui/titlebar.c +++ b/src/ui/titlebar.c @@ -157,11 +157,15 @@ _title_bar_draw(void) waddch(win, ' '); mvwprintw(win, 0, 0, " %s", current_title); - #ifdef HAVE_LIBOTR // show privacy if (current_recipient != NULL) { - char *recipient_jid = roster_barejid_from_name(current_recipient); + char *recipient_jid = NULL; + if (roster_find_contact(current_recipient) != NULL) { + recipient_jid = roster_barejid_from_name(current_recipient); + } else { + recipient_jid = current_recipient; + } ProfWin *current = wins_get_by_recipient(recipient_jid); if (current != NULL) { if (current->type == WIN_CHAT) { |