From c7a8bc177f89b53c42adb8753ea20c289ffe321b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Fri, 6 Jul 2018 15:39:52 +0200 Subject: [PATCH] encryption: Update group decryption to unpack the message index. --- matrix/rooms.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/matrix/rooms.py b/matrix/rooms.py index 717d5ae..f1ff806 100644 --- a/matrix/rooms.py +++ b/matrix/rooms.py @@ -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