feat: Enable direct navigation to specific message conversations via URL parameters and initiate new conversations from the network page.
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
'use client';
|
||||
|
||||
import { useSearchParams } from 'next/navigation';
|
||||
import { MessagingPage } from '@/components/message';
|
||||
|
||||
export default function UserMessagePage() {
|
||||
const searchParams = useSearchParams();
|
||||
const conversationId = searchParams.get('conversationId');
|
||||
|
||||
return (
|
||||
<div className="max-w-7xl mx-auto px-4 lg:px-8 py-6">
|
||||
<MessagingPage />
|
||||
<MessagingPage initialConversationId={conversationId} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user