Skip to content

Commit

Permalink
feat: messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
warmachine028 committed Nov 24, 2024
1 parent 7ac5f36 commit d084a65
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"scripts": {
"build": "next build",
"dev": "next dev --turbopack",
"lint": ".",
"lint": "next lint",
"postinstall": "prisma generate",
"prisma:deploy": "prisma migrate deploy",
"prisma:generate": "prisma generate",
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/chats/Channel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import { ChannelHeader, MessageInput, MessageList, Channel as StreamChannel, Win
const Channel = () => {
return (
<div className="w-full">
{/* <StreamChannel>
<StreamChannel>
<Window>
<ChannelHeader />
<MessageList />
<MessageInput />
</Window>
</StreamChannel> */}
</StreamChannel>
</div>
)
}
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/chats/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useInitializeChatClient } from '@/hooks'
import { Loader2 } from 'lucide-react'
import { Sidebar, Channel } from '.'
// import { Chat as StreamChat } from 'stream-chat-react'
import { Chat as StreamChat } from 'stream-chat-react'

const Chat = () => {
const chatClient = useInitializeChatClient()
Expand All @@ -14,10 +14,10 @@ const Chat = () => {

return (
<div className="absolute bottom-0 top-0 flex w-full">
{/* <StreamChat client={chatClient}> */}
<StreamChat client={chatClient}>
<Sidebar />
<Channel />
{/* </StreamChat> */}
</StreamChat>
</div>
)
}
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/chats/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
'use client'

import { useSession } from '@/hooks'
// import { ChannelList } from 'stream-chat-react'
import { ChannelList } from 'stream-chat-react'

const ChatSidebar = () => {
const { user } = useSession()

return (
<div className="flex size-full flex-col border-e md:w-72 ring-1">
{/* <ChannelList filters={{ type: 'messaging', members: { $in: [user?.id] } }} showChannelSearch /> */}
<div className="flex size-full flex-col border-e ring-1 md:w-72">
<ChannelList filters={{ type: 'messaging', members: { $in: [user?.id] } }} showChannelSearch />
</div>
)
}
Expand Down

1 comment on commit d084a65

@vercel
Copy link

@vercel vercel bot commented on d084a65 Nov 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.