ui_smp_successful takes ProfChatWin

This commit is contained in:
James Booth
2015-10-26 23:50:56 +00:00
parent 3cea2bc4f4
commit 8bd74cefcf
5 changed files with 17 additions and 12 deletions

View File

@@ -196,7 +196,9 @@ cb_handle_smp_event(void *opdata, OtrlSMPEvent smp_event,
case OTRL_SMPEVENT_SUCCESS:
if (context->smstate->received_question == 0) {
ui_smp_successful(context->username);
if (chatwin) {
ui_smp_successful(chatwin);
}
ui_trust(context->username);
} else {
ui_smp_answer_success(context->username);