static void cb_gone_secure(void *opdata, ConnContext *context) { ProfChatWin *chatwin = wins_get_chat(context->username); if (!chatwin) { chatwin = (ProfChatWin*) wins_new_chat(context->username); } chatwin_otr_secured(chatwin, otr_is_trusted(context->username)); }
static void cb_gone_secure(void *opdata, ConnContext *context) { ui_gone_secure(context->username, otr_is_trusted(context->username)); }