Commit 1bef5236 authored by Guido Gunther's avatar Guido Gunther
Browse files

Merge branch 'mrs/bubble_up' into 'librem5'

Report decryption failure to user

Closes chatty#338

See merge request !5
parents 3070d361 dd18b3b9
Pipeline #55901 passed with stages
in 2 minutes and 56 seconds
...@@ -1806,7 +1806,11 @@ static void lurch_message_decrypt(PurpleConnection * gc_p, xmlnode ** msg_stanza ...@@ -1806,7 +1806,11 @@ static void lurch_message_decrypt(PurpleConnection * gc_p, xmlnode ** msg_stanza
goto cleanup; goto cleanup;
} }
if (!key_p) { 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_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; 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