xep_0384: Fix issue when loading session

Slixmpp was never able to load the session as ids would mismatch, thus
unable to decrypt incoming messages.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2018-12-01 18:13:07 +00:00
parent 4b51f117bb
commit 23ac4a5bff

View file

@ -279,7 +279,7 @@ class XEP_0384(BasePlugin):
payload = b64dec(msg['omemo_encrypted']['payload']['value'])
jid = msg['from'].bare
sid = header['sid']
sid = int(header['sid'])
key = header.xml.find("{%s}key[@rid='%s']" % (
OMEMO_BASE_NS, self._device_id))