diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-01-05 18:56:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-05 18:56:35 +0100 |
commit | 33fca40b58ab57b08fef462c19b086c7f9aa467c (patch) | |
tree | 954d64f03df1f2a70b7ec4add59040dc49128a88 /src/xmpp/omemo.c | |
parent | be13e98fe7082858d37185357ca06a09e538b78e (diff) | |
parent | 5ccd04c91bbc4ed4e32fdc4513c1a7a58918e513 (diff) | |
download | profani-tty-33fca40b58ab57b08fef462c19b086c7f9aa467c.tar.gz |
Merge pull request #1248 from svensp/master
OMEMO message keys allow prekey="1" alongside prekey="true"
Diffstat (limited to 'src/xmpp/omemo.c')
-rw-r--r-- | src/xmpp/omemo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xmpp/omemo.c b/src/xmpp/omemo.c index 22935c0d..ba373c4f 100644 --- a/src/xmpp/omemo.c +++ b/src/xmpp/omemo.c @@ -359,7 +359,9 @@ omemo_receive_message(xmpp_stanza_t *const stanza, gboolean *trusted) key->data = g_base64_decode(key_text, &key->length); free(key_text); - key->prekey = g_strcmp0(xmpp_stanza_get_attribute(key_stanza, "prekey"), "true") == 0; + key->prekey = + g_strcmp0(xmpp_stanza_get_attribute(key_stanza, "prekey"), "true") == 0 + || g_strcmp0(xmpp_stanza_get_attribute(key_stanza, "prekey"), "1") == 0; keys = g_list_append(keys, key); continue; |