-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🎉 채팅 관련 UI 및 로직 #96
🎉 채팅 관련 UI 및 로직 #96
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다 👋
) | ||
})} | ||
{messages.length === 0 && ( | ||
<h1 className="text-red-500">채팅을 시작해보세요!</h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
채팅방에 진입했을 때 메세지들이 있는데도 채팅을 시작해보세요 문구가 1초정도 보였다가 사라지는데 혹시 의도하신 건가요? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아닙니다. api처리하면서 수정할 예정입니다!
@@ -0,0 +1,13 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혹시 이건 무슨 파일이죠?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
webhint 하나 비활성화해서 저장됐나보네요
interface Message { | ||
text: string | ||
createdAt: Timestamp | ||
sender: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sender에는 유저의 nickName이 들어가는 것으로 이해하면 될까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아 근데 유저 닉네임 변경 가능하네요... 아이디로 바꿔야겠습니다. 감사합니다
try { | ||
await addDoc(messageRef, { | ||
text: message, | ||
sender: currentUser?.nickname ?? '익명', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
익명이 필요한 경우가 있나요?? 채팅같은 경우 무조건 로그인 상태여야만 접근할 수 있다면 필요 없을 것 같아서요 (잘 모름) 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
필요 없을 것 같습니다. 권한 처리하면서 처리 예정입니다!
- 목적
관련 티켓 번호: 271, 273
- 주요 변경 사항
기타 사항 (선택)
- 스크린샷 (선택)