Releasing new design #161
@ -86,11 +86,8 @@ export class RelayController {
|
||||
filter: Filter,
|
||||
relayUrls: string[] = []
|
||||
): Promise<Event[]> => {
|
||||
// add app relay to relays array
|
||||
relayUrls.push(SIGIT_RELAY)
|
||||
|
||||
// Connect to all specified relays
|
||||
const relayPromises = relayUrls.map((relayUrl) =>
|
||||
// Add app relay to relays array and connect to all specified relays
|
||||
const relayPromises = [...relayUrls, SIGIT_RELAY].map((relayUrl) =>
|
||||
this.connectRelay(relayUrl)
|
||||
)
|
||||
|
||||
@ -204,11 +201,9 @@ export class RelayController {
|
||||
relayUrls: string[] = [],
|
||||
eventHandler: (event: Event) => void
|
||||
) => {
|
||||
// add app relay to relays array
|
||||
relayUrls.push(SIGIT_RELAY)
|
||||
// Add app relay to relays array and connect to all specified relays
|
||||
|
||||
// Connect to all specified relays
|
||||
const relayPromises = relayUrls.map((relayUrl) =>
|
||||
const relayPromises = [...relayUrls, SIGIT_RELAY].map((relayUrl) =>
|
||||
this.connectRelay(relayUrl)
|
||||
)
|
||||
|
||||
@ -263,11 +258,9 @@ export class RelayController {
|
||||
event: Event,
|
||||
relayUrls: string[] = []
|
||||
): Promise<string[]> => {
|
||||
// add app relay to relays array
|
||||
relayUrls.push(SIGIT_RELAY)
|
||||
// Add app relay to relays array and connect to all specified relays
|
||||
|
||||
// Connect to all specified relays
|
||||
const relayPromises = relayUrls.map((relayUrl) =>
|
||||
const relayPromises = [...relayUrls, SIGIT_RELAY].map((relayUrl) =>
|
||||
this.connectRelay(relayUrl)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user