Files
smesh/src/renderer/src/lib/relay.ts
codytseng 38d1ad9590 refactor: 💨
2024-12-09 09:54:29 +08:00

10 lines
331 B
TypeScript

import { TRelayInfo } from '@renderer/types'
export function checkAlgoRelay(relayInfo: TRelayInfo | undefined) {
return relayInfo?.software === 'https://github.com/bitvora/algo-relay' // hardcode for now
}
export function checkSearchRelay(relayInfo: TRelayInfo | undefined) {
return relayInfo?.supported_nips?.includes(50)
}