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)
|
||||
|
||||
elif isinstance(response, KeysClaimResponse):
|
||||
try:
|
||||
_, request = self.client.share_group_session(
|
||||
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)
|
||||
|
||||
elif isinstance(response, ShareGroupSessionResponse):
|
||||
|
|
Loading…
Add table
Reference in a new issue