encryption: Return a tuple even if group decryption failed.

This commit is contained in:
Damir Jelić 2018-07-13 15:39:18 +02:00
parent 901b18ac06
commit 7e1fc69cbf

View file

@ -653,11 +653,9 @@ class Olm():
session = self.inbound_group_sessions[room_id][session_id]
try:
plaintext = session.decrypt(ciphertext)
return session.decrypt(ciphertext)
except OlmGroupSessionError:
return None
return plaintext
return None, None
def share_group_session(self, room_id, own_id, users):
group_session = self.outbound_group_sessions[room_id]