Browse Source

bug-fix build

imwald
Silberengel 4 weeks ago
parent
commit
696f911a63
  1. 6
      src/lib/public-message-publish-relays.test.ts
  2. 1
      src/lib/public-message-publish-relays.ts
  3. 3
      src/services/client.service.ts

6
src/lib/public-message-publish-relays.test.ts

@ -13,7 +13,8 @@ describe('public-message-publish-relays', () => {
read: ['wss://sender-in.example/'], read: ['wss://sender-in.example/'],
httpWrite: ['https://sender-http.example/'], httpWrite: ['https://sender-http.example/'],
httpRead: ['https://sender-http-in.example/'], httpRead: ['https://sender-http-in.example/'],
originalRelays: [] originalRelays: [],
httpOriginalRelays: []
}) })
).toEqual(['https://sender-http.example/', 'wss://sender-out.example/']) ).toEqual(['https://sender-http.example/', 'wss://sender-out.example/'])
@ -23,7 +24,8 @@ describe('public-message-publish-relays', () => {
read: ['wss://recipient-in.example/'], read: ['wss://recipient-in.example/'],
httpWrite: [], httpWrite: [],
httpRead: ['https://recipient-http-in.example/'], httpRead: ['https://recipient-http-in.example/'],
originalRelays: [] originalRelays: [],
httpOriginalRelays: []
}) })
).toEqual(['https://recipient-http-in.example/', 'wss://recipient-in.example/']) ).toEqual(['https://recipient-http-in.example/', 'wss://recipient-in.example/'])
}) })

1
src/lib/public-message-publish-relays.ts

@ -1,4 +1,5 @@
import { import {
MAX_PUBLISH_RELAYS,
PUBLIC_MESSAGE_RSVP_PUBLISH_AUTHOR_WRITE_CAP, PUBLIC_MESSAGE_RSVP_PUBLISH_AUTHOR_WRITE_CAP,
PUBLIC_MESSAGE_RSVP_PUBLISH_MAX_RELAYS PUBLIC_MESSAGE_RSVP_PUBLISH_MAX_RELAYS
} from '@/constants' } from '@/constants'

3
src/services/client.service.ts

@ -2865,7 +2865,8 @@ class ClientService extends EventTarget {
*/ */
firstRelayResultGraceMs = FIRST_RELAY_RESULT_GRACE_MS, firstRelayResultGraceMs = FIRST_RELAY_RESULT_GRACE_MS,
relayReqLog, relayReqLog,
relayAuthoritativeTimeline = false relayAuthoritativeTimeline = false,
connectionSlotPriority
}: { }: {
startLogin?: () => void startLogin?: () => void
needSort?: boolean needSort?: boolean

Loading…
Cancel
Save