Fixed chat logging

fixes #147
This commit is contained in:
James Booth
2013-01-29 23:01:15 +00:00
parent 61b4ef9c83
commit 957bea19e4
3 changed files with 24 additions and 16 deletions

View File

@@ -2327,7 +2327,9 @@ _win_show_history(WINDOW *win, int win_index, const char * const contact)
{
if (!windows[win_index]->history_shown) {
GSList *history = NULL;
history = chat_log_get_previous(jabber_get_jid(), contact, history);
Jid *jid = jid_create(jabber_get_jid());
history = chat_log_get_previous(jid->barejid, contact, history);
jid_destroy(jid);
while (history != NULL) {
wprintw(win, "%s\n", history->data);
history = g_slist_next(history);