Merge branch 'soru/key-request-try-catch' into 'master'
put key request in try...catch See merge request famedly/famedlysdk!404
This commit is contained in:
commit
050222cede
|
@ -417,6 +417,7 @@ class KeyManager {
|
|||
return; // we managed to load the session from online backup, no need to care about it now
|
||||
}
|
||||
}
|
||||
try {
|
||||
// while we just send the to-device event to '*', we still need to save the
|
||||
// devices themself to know where to send the cancel to after receiving a reply
|
||||
final devices = await room.getUserDeviceKeys();
|
||||
|
@ -445,6 +446,10 @@ class KeyManager {
|
|||
encrypted: false,
|
||||
toUsers: await room.requestParticipants());
|
||||
outgoingShareRequests[request.requestId] = request;
|
||||
} catch (err) {
|
||||
print('[Key Manager] Sending key verification request failed: ' +
|
||||
err.toString());
|
||||
}
|
||||
}
|
||||
|
||||
/// Handle an incoming to_device event that is related to key sharing
|
||||
|
|
Loading…
Reference in a new issue