Move nip29 check

This commit is contained in:
Jon Staab
2024-12-12 14:49:30 -08:00
parent 9d6531c0d5
commit 9f3bfd5ac0
5 changed files with 12 additions and 9 deletions
+4 -1
View File
@@ -459,10 +459,13 @@ export const messages = derived(
$events => $events.map(adaptLegacyMessage),
)
// Group Meta
// Nip29
export const groupMeta = deriveEvents(repository, {filters: [{kinds: [GROUP_META]}]})
export const hasNip29 = (relay?: Relay) =>
relay?.profile?.supported_nips?.map(String)?.includes("29")
// Channels
export type ChannelMeta = {