Profile editor

This commit is contained in:
2022-12-28 14:51:33 +00:00
parent aadc58a104
commit 00b0cecf6c
9 changed files with 140 additions and 26 deletions

View File

@ -83,6 +83,14 @@ export class Subscriptions {
this.OrSubs.push(sub);
}
/**
* If all relays have responded with EOSE
* @returns {boolean}
*/
IsFinished() {
return Object.keys(this.Started).length === Object.keys(this.Finished).length;
}
static FromObject(obj) {
let ret = new Subscriptions();
ret.Ids = new Set(obj.ids);