ui_smp_unsuccessful_sender takes ProfChatWin
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -206,7 +206,9 @@ cb_handle_smp_event(void *opdata, OtrlSMPEvent smp_event,
|
||||
case OTRL_SMPEVENT_FAILURE:
|
||||
if (context->smstate->received_question == 0) {
|
||||
if (nextMsg == OTRL_SMP_EXPECT3) {
|
||||
ui_smp_unsuccessful_sender(context->username);
|
||||
if (chatwin) {
|
||||
ui_smp_unsuccessful_sender(chatwin);
|
||||
}
|
||||
} else if (nextMsg == OTRL_SMP_EXPECT4) {
|
||||
ui_smp_unsuccessful_receiver(context->username);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user