server: Handle exception from group session sharing request.
This commit is contained in:
parent
15e4e74c77
commit
5fd5710225
1 changed files with 10 additions and 4 deletions
|
@ -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):
|
||||||
_, request = self.client.share_group_session(
|
try:
|
||||||
response.room_id,
|
_, request = self.client.share_group_session(
|
||||||
ignore_missing_sessions=True
|
response.room_id,
|
||||||
)
|
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):
|
||||||
|
|
Loading…
Add table
Reference in a new issue