nip28: fix naming bug.

This commit is contained in:
fiatjaf 2024-10-23 17:11:35 -03:00
parent 013daae91b
commit 5c538efa38
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import { Event, finalizeEvent } from './pure.ts' import { Event, finalizeEvent } from './pure.ts'
import { ChannelCreation, ChannelHideMessage, ChannelMessage, ChannelMetadata, ChannelMuteUser } from './kinds.ts' import { ChannelCreation, ChannelHideMessage, ChannelMessage, ChannelMetadata as KindChannelMetadata, ChannelMuteUser } from './kinds.ts'
export interface ChannelMetadata { export interface ChannelMetadata {
name: string name: string
@ -78,7 +78,7 @@ export const channelMetadataEvent = (t: ChannelMetadataEventTemplate, privateKey
return finalizeEvent( return finalizeEvent(
{ {
kind: ChannelMetadata, kind: KindChannelMetadata,
tags: [['e', t.channel_create_event_id], ...(t.tags ?? [])], tags: [['e', t.channel_create_event_id], ...(t.tags ?? [])],
content: content, content: content,
created_at: t.created_at, created_at: t.created_at,