Ignore our own requests

This commit is contained in:
RMidhunSuresh 2023-06-07 14:53:09 +05:30
parent f8c5878a01
commit 60966c482a

View File

@ -132,6 +132,10 @@ export class SecretSharing {
private async shouldRespondToRequest(request: any, log: ILogItem): Promise<boolean> {
return log.wrap("SecretSharing.shouldRespondToRequest", async () => {
if (request.event.content.requesting_device_id === this.deviceTracker.ownDeviceId) {
// This is the request that we sent, so ignore
return false;
}
const crossSigning = this.crossSigning.get();
if (!crossSigning) {
// We're not in a position to respond to this request