refactor: include relays in kind3
This commit is contained in:
@ -257,9 +257,12 @@ export class EventPublisher {
|
||||
return await this.#sign(eb);
|
||||
}
|
||||
|
||||
async contactList(tags: Array<[string, string]>) {
|
||||
async contactList(tags: Array<[string, string]>, relays?: Record<string, RelaySettings>) {
|
||||
const eb = this.#eb(EventKind.ContactList);
|
||||
tags.forEach(a => eb.tag(a));
|
||||
if (relays) {
|
||||
eb.content(JSON.stringify(relays));
|
||||
}
|
||||
return await this.#sign(eb);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user