server: Handle exception from group session sharing request.

This commit is contained in:
Damir Jelić 2018-10-02 16:40:18 +02:00
parent 15e4e74c77
commit 5fd5710225

View file

@ -878,10 +878,16 @@ class MatrixServer(object):
self.handle_backlog_response(response) self.handle_backlog_response(response)
elif isinstance(response, KeysClaimResponse): elif isinstance(response, KeysClaimResponse):
try:
_, request = self.client.share_group_session( _, request = self.client.share_group_session(
response.room_id, response.room_id,
ignore_missing_sessions=True ignore_missing_sessions=True
) )
except OlmTrustError as e:
m = ("Untrusted devices found in room: {}".format(e))
self.error(m)
return
self.send(request) self.send(request)
elif isinstance(response, ShareGroupSessionResponse): elif isinstance(response, ShareGroupSessionResponse):