disable messageing functions (not needed yet)

This commit is contained in:
2025-11-26 21:18:26 +01:00
parent 5813282ea7
commit 423acbf2bf

View File

@@ -12,9 +12,9 @@ import { TooltipProvider } from "@/components/ui/tooltip";
import { NostrLoginProvider } from '@nostrify/react/login';
import { AppProvider } from '@/components/AppProvider';
import { NWCProvider } from '@/contexts/NWCContext';
import { DMProvider, type DMConfig } from '@/components/DMProvider';
// import { DMProvider, type DMConfig } from '@/components/DMProvider';
import { AppConfig } from '@/contexts/AppContext';
import { PROTOCOL_MODE } from '@/lib/dmConstants';
// import { PROTOCOL_MODE } from '@/lib/dmConstants';
import AppRouter from './AppRouter';
const head = createHead({
@@ -49,16 +49,16 @@ const defaultConfig: AppConfig = {
},
};
const dmConfig: DMConfig = {
// Enable or disable DMs entirely
enabled: true, // Set to false to completely disable messaging functionality
// const dmConfig: DMConfig = {
// // Enable or disable DMs entirely
// enabled: true, // Set to false to completely disable messaging functionality
// Choose one protocol mode:
// PROTOCOL_MODE.NIP04_ONLY - Force NIP-04 (legacy) only
// PROTOCOL_MODE.NIP17_ONLY - Force NIP-17 (private) only
// PROTOCOL_MODE.NIP04_OR_NIP17 - Allow users to choose between NIP-04 and NIP-17 (defaults to NIP-17)
protocolMode: PROTOCOL_MODE.NIP04_OR_NIP17,
};
// // Choose one protocol mode:
// // PROTOCOL_MODE.NIP04_ONLY - Force NIP-04 (legacy) only
// // PROTOCOL_MODE.NIP17_ONLY - Force NIP-17 (private) only
// // PROTOCOL_MODE.NIP04_OR_NIP17 - Allow users to choose between NIP-04 and NIP-17 (defaults to NIP-17)
// protocolMode: PROTOCOL_MODE.NIP04_OR_NIP17,
// };
export function App() {
return (
@@ -69,14 +69,14 @@ export function App() {
<NostrProvider>
<NostrSync />
<NWCProvider>
<DMProvider config={dmConfig}>
{/* <DMProvider config={dmConfig}> */}
<TooltipProvider>
<Toaster />
<Suspense>
<AppRouter />
</Suspense>
</TooltipProvider>
</DMProvider>
{/* </DMProvider> */}
</NWCProvider>
</NostrProvider>
</NostrLoginProvider>