diff options
author | Jonas Schäfer <jonas@wielicki.name> | 2022-01-15 15:40:29 +0100 |
---|---|---|
committer | Jonas Schäfer <jonas@wielicki.name> | 2022-01-15 15:40:29 +0100 |
commit | 91055b49bba7b0be8f2b25b96b0ae9ce2a4337ff (patch) | |
tree | 4497f4f91a8b50c89983f97a70a5adb686767f8a /spec/util_hashes_spec.lua | |
parent | bb100ed33ec5dfe46eccc3ac0a89e6d7f9952ac3 (diff) | |
download | prosody-91055b49bba7b0be8f2b25b96b0ae9ce2a4337ff.tar.gz prosody-91055b49bba7b0be8f2b25b96b0ae9ce2a4337ff.zip |
mod_storage_xep0227: treat roster metadata pseudo-entry correctly
The roster version is stored in a pseudo-item which has the key `false`.
The if condition in the touched code attempts to guard against this, but
it does not take into account that the jid prepping returns nil instead
of false.
By moving the jid prepping into the if, we can check for the metadata
entry safely.
Diffstat (limited to 'spec/util_hashes_spec.lua')
0 files changed, 0 insertions, 0 deletions