ui_smp_unsuccessful_sender takes ProfChatWin

This commit is contained in:
James Booth
2015-10-26 23:36:11 +00:00
parent 3ce55de1e1
commit d11f8d5ffc
5 changed files with 18 additions and 11 deletions

View File

@@ -181,7 +181,10 @@ otrlib_handle_tlvs(OtrlUserState user_state, OtrlMessageAppOps *ops, ConnContext
ui_smp_successful(context->username);
ui_trust(context->username);
} else {
ui_smp_unsuccessful_sender(context->username);
ProfChatWin *chatwin = wins_get_chat(context->username);
if (chatwin) {
ui_smp_unsuccessful_sender(chatwin);
}
ui_untrust(context->username);
}
} else {