ui_smp_recipient_initiated takes ProfChatWin

This commit is contained in:
James Booth
2015-10-26 23:22:59 +00:00
parent 93c3feeacf
commit 55e857d6a8
5 changed files with 16 additions and 9 deletions

View File

@@ -140,7 +140,10 @@ otrlib_handle_tlvs(OtrlUserState user_state, OtrlMessageAppOps *ops, ConnContext
if (nextMsg != OTRL_SMP_EXPECT1) {
otrl_message_abort_smp(user_state, ops, NULL, context);
} else {
ui_smp_recipient_initiated(context->username);
ProfChatWin *chatwin = wins_get_chat(context->username);
if (chatwin) {
ui_smp_recipient_initiated(chatwin);
}
g_hash_table_insert(smp_initiators, strdup(context->username), strdup(context->username));
}
}