mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
Ignore our own requests
This commit is contained in:
parent
f8c5878a01
commit
60966c482a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user