Commit dd18b3b9 authored by Guido Gunther's avatar Guido Gunther
Browse files

Report decryption failure to user

This makes sure users know they're missing messages
parent d03e4735
......@@ -1806,7 +1806,11 @@ static void lurch_message_decrypt(PurpleConnection * gc_p, xmlnode ** msg_stanza
goto cleanup;
}
if (!key_p) {
const char *to = room_name ?: sender;
purple_debug_info("lurch", "received omemo message that does not contain a key for this device, skipping\n");
purple_conv_present_error(to, purple_connection_get_account(gc_p),
"Received omemo message that does not contain a key for this device");
goto cleanup;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment