put key request in try...catch
This commit is contained in:
parent
2697f88397
commit
18a790be84
|
@ -417,6 +417,7 @@ class KeyManager {
|
||||||
return; // we managed to load the session from online backup, no need to care about it now
|
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
|
// 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
|
// devices themself to know where to send the cancel to after receiving a reply
|
||||||
final devices = await room.getUserDeviceKeys();
|
final devices = await room.getUserDeviceKeys();
|
||||||
|
@ -445,6 +446,10 @@ class KeyManager {
|
||||||
encrypted: false,
|
encrypted: false,
|
||||||
toUsers: await room.requestParticipants());
|
toUsers: await room.requestParticipants());
|
||||||
outgoingShareRequests[request.requestId] = request;
|
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
|
/// Handle an incoming to_device event that is related to key sharing
|
||||||
|
|
Loading…
Reference in a new issue