wip: migrate channel to zustand
This commit is contained in:
@@ -9,8 +9,9 @@ export const useChannels = create((set) => ({
|
||||
},
|
||||
}));
|
||||
|
||||
export const useChannelMessage = create((set) => ({
|
||||
export const useChannelMessages = create((set) => ({
|
||||
messages: [],
|
||||
replyTo: null,
|
||||
add: (message: any) => {
|
||||
set((state: any) => ({ messages: [...state.messages, message] }));
|
||||
},
|
||||
|
||||
@@ -20,6 +20,9 @@ export const WRITEONLY_RELAYS = [
|
||||
"wss://relay.nostr.band",
|
||||
];
|
||||
|
||||
// metadata relay
|
||||
export const METADATA_RELAY = ["wss://relay.nostr.band"];
|
||||
|
||||
// full-relay list
|
||||
export const FULL_RELAYS = [
|
||||
"wss://welcome.nostr.wine",
|
||||
|
||||
Reference in New Issue
Block a user