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]
|
session = self.inbound_group_sessions[room_id][session_id]
|
||||||
try:
|
try:
|
||||||
plaintext = session.decrypt(ciphertext)
|
return session.decrypt(ciphertext)
|
||||||
except OlmGroupSessionError:
|
except OlmGroupSessionError:
|
||||||
return None
|
return None, None
|
||||||
|
|
||||||
return plaintext
|
|
||||||
|
|
||||||
def share_group_session(self, room_id, own_id, users):
|
def share_group_session(self, room_id, own_id, users):
|
||||||
group_session = self.outbound_group_sessions[room_id]
|
group_session = self.outbound_group_sessions[room_id]
|
||||||
|
|
Loading…
Reference in a new issue