ui_gone_secure takes ProfChatWin

This commit is contained in:
James Booth
2015-10-26 23:04:45 +00:00
parent 2efaa464bf
commit 4fb0b4b0da
5 changed files with 15 additions and 17 deletions

View File

@@ -42,6 +42,7 @@
#include "otr/otrlib.h"
#include "log.h"
#include "roster_list.h"
#include "window_list.h"
#include "contact.h"
#include "ui/ui.h"
#include "config/preferences.h"
@@ -143,7 +144,12 @@ cb_write_fingerprints(void *opdata)
static void
cb_gone_secure(void *opdata, ConnContext *context)
{
ui_gone_secure(context->username, otr_is_trusted(context->username));
ProfChatWin *chatwin = wins_get_chat(context->username);
if (!chatwin) {
chatwin = (ProfChatWin*) wins_new_chat(context->username);
}
ui_gone_secure(chatwin, otr_is_trusted(context->username));
}
char*