encryption: Update group decryption to unpack the message index.

This commit is contained in:
poljar (Damir Jelić) 2018-07-06 15:39:52 +02:00
parent 1e3e66e350
commit c7a8bc177f

View file

@ -258,7 +258,11 @@ class RoomInfo():
def _decrypt_event(olm, room_id, event_dict):
session_id = event_dict["content"]["session_id"]
ciphertext = event_dict["content"]["ciphertext"]
plaintext = olm.group_decrypt(room_id, session_id, ciphertext)
plaintext, message_index = olm.group_decrypt(
room_id,
session_id,
ciphertext
)
if not plaintext:
return None