feat: rebroadcast

This commit is contained in:
2023-05-04 14:16:58 +01:00
parent 551169c2c7
commit 6fe9a27041
8 changed files with 237 additions and 12 deletions

View File

@ -9,6 +9,7 @@ interface NoteCreatorStore {
preview?: RawEvent;
replyTo?: TaggedRawEvent;
showAdvanced: boolean;
selectedCustomRelays: false | Array<string>;
zapForward: string;
sensitive: string;
pollOptions?: Array<string>;
@ -21,6 +22,7 @@ const InitState: NoteCreatorStore = {
error: "",
active: false,
showAdvanced: false,
selectedCustomRelays: false,
zapForward: "",
sensitive: "",
otherEvents: [],
@ -51,6 +53,9 @@ const NoteCreatorSlice = createSlice({
setShowAdvanced: (state, action: PayloadAction<boolean>) => {
state.showAdvanced = action.payload;
},
setSelectedCustomRelays: (state, action: PayloadAction<false | Array<string>>) => {
state.selectedCustomRelays = action.payload;
},
setZapForward: (state, action: PayloadAction<string>) => {
state.zapForward = action.payload;
},
@ -75,6 +80,7 @@ export const {
setPreview,
setReplyTo,
setShowAdvanced,
setSelectedCustomRelays,
setZapForward,
setSensitive,
setPollOptions,