feat: NIP-24

This commit is contained in:
2023-08-17 19:54:14 +01:00
parent 8500dee24f
commit f6a46e3523
51 changed files with 792 additions and 319 deletions

View File

@ -1,5 +1,5 @@
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import { NostrEvent, TaggedRawEvent } from "@snort/system";
import { NostrEvent, TaggedNostrEvent } from "@snort/system";
interface NoteCreatorStore {
show: boolean;
@ -7,7 +7,7 @@ interface NoteCreatorStore {
error: string;
active: boolean;
preview?: NostrEvent;
replyTo?: TaggedRawEvent;
replyTo?: TaggedNostrEvent;
showAdvanced: boolean;
selectedCustomRelays: false | Array<string>;
zapForward: string;
@ -47,7 +47,7 @@ const NoteCreatorSlice = createSlice({
setPreview: (state, action: PayloadAction<NostrEvent | undefined>) => {
state.preview = action.payload;
},
setReplyTo: (state, action: PayloadAction<TaggedRawEvent | undefined>) => {
setReplyTo: (state, action: PayloadAction<TaggedNostrEvent | undefined>) => {
state.replyTo = action.payload;
},
setShowAdvanced: (state, action: PayloadAction<boolean>) => {