encryption: Update group decryption to unpack the message index.
This commit is contained in:
parent
1e3e66e350
commit
c7a8bc177f
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue