encryption: Return a tuple even if group decryption failed.
This commit is contained in:
parent
901b18ac06
commit
7e1fc69cbf
1 changed files with 2 additions and 4 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue