File tree 5 files changed +28
-9
lines changed
components/room/InviteModal
5 files changed +28
-9
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ npx cypress open
161
161
162
162
- 현재 진행중인 모각코 방들을 메인화면에서 찾을 수 있어요
163
163
- 방에대한 정보(제목, 태그, 테마)등을 통하여 원하는 방에 입장 할 수 있어요
164
+ - 초대하기 링크를 통해 입장하면 비밀번호가 있는 방에 바로 접속 가능해요
164
165
165
166
### ⭐️ 모각코 방 생성
166
167
@@ -170,17 +171,28 @@ npx cypress open
170
171
### ⭐️ 친구 추가
171
172
172
173
- 모각코중에 마음에 드는 사람을 만났나요? 친구로 등록해보세요
173
- - 친구의 모각코 방을 따라갈 수도, 개인적인 연락을 할 수 도 있어요
174
+ - 친구 신청, 친구 수락 및 거절, 친구 삭제 모두 가능해요!
174
175
175
176
### ⭐️ 화면 공유
176
177
177
178
- 어떤것을 코딩하는지 공유하고 싶다면, 화면을 공유해보세요
178
179
- 화면만으로 부족하다면, 음성을 키고 대화해보세요
179
180
180
- ### ⭐️ 통계
181
+ ### ⭐️ 채팅
182
+ - 모각코 방에서 여러 사람들과 채팅을 할 수 있어요
183
+ - 친구들과 1:1 채팅 또한 가능해요!
181
184
182
- - 얼마나 했는지 궁금하시다면, 통계 페이지를 참고하세요
183
- - 오늘, 이번주, 한달 등 다양한 통계 자료를 보여드려요
185
+ ### ⭐️ 유튜브 플레이리스트 듣기
186
+ - 나만의 플레이리스트로 커스텀하여 친구들과 노래를 들을 수 있어요
187
+ - 원하지 않는 노래는 삭제도 가능해요
188
+
189
+ ### ⭐️ 프로필 설정
190
+ - 나의 깃허브와 개인 페이지 혹은 블로그 링크를 등록할 수 있어요
191
+ - 간단한 한줄 소개로 자신을 표현해봐요!
192
+
193
+ ### ⭐ 로비 입장
194
+ - 현재 모도코에 있는 모든 사람들을 확인할 수 있어요
195
+ - 전체 채팅을 통해 같이 모각코할 사람을 구해보세요!
184
196
185
197
---
186
198
Original file line number Diff line number Diff line change @@ -34,7 +34,13 @@ const syncFriend = (
34
34
) => {
35
35
friendSocket . socket ?. on ( 'friend:sync-all' , ( data : directMessage [ ] ) => {
36
36
data . forEach ( ( singleData ) => {
37
- if ( singleData . messages . length === 0 ) return ;
37
+ if ( singleData . messages . length === 0 ) {
38
+ setMessage ( {
39
+ uid : singleData . friend . uid ,
40
+ messages : [ ] ,
41
+ } ) ;
42
+ return ;
43
+ }
38
44
// 가장 최근에 온 순서로 정렬
39
45
const filteredMessage = singleData . messages
40
46
? singleData . messages . sort ( ( a , b ) => {
Original file line number Diff line number Diff line change @@ -19,9 +19,8 @@ export default function Invite() {
19
19
} else {
20
20
const password = localStorage . getItem ( `${ roomId } ` ) ;
21
21
getInviteCode ( parseInt ( roomId , 10 ) , password ) . then ( ( res ) => {
22
- localStorage . setItem ( `${ roomId } ` , res . data . password ) ;
23
22
setInviteCode (
24
- `${ process . env . REACT_APP_LAMBDA_INVITE } /${ res . data . roomId } ` ,
23
+ `${ process . env . REACT_APP_LAMBDA_INVITE } /${ res . data . roomId } / ${ res . data . password } ` ,
25
24
) ;
26
25
} ) ;
27
26
}
Original file line number Diff line number Diff line change @@ -42,8 +42,6 @@ export default function useLogin() {
42
42
localStorage . setItem ( 'access_token' , result . data . access_token ) ;
43
43
getMe ( )
44
44
. then ( ( res ) => {
45
- // reload to resolve socket bog
46
- window . location . reload ( ) ;
47
45
setNickname ( res . data . nickname ) ;
48
46
setAvatar ( res . data . avatar ) ;
49
47
setUid ( res . data . uid ) ;
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ export default function Invite() {
14
14
const { setLoginModal } = loginModalStore ( ) ;
15
15
const token = localStorage . getItem ( 'access_token' ) ;
16
16
17
+ const urlSearch = new URLSearchParams ( window . location . search ) ;
18
+ const password = urlSearch . get ( 'pw' ) ;
19
+ if ( password ) localStorage . setItem ( `${ inviteId } ` , password ) ;
20
+
17
21
localStorage . setItem ( 'inviteId' , inviteId ) ;
18
22
const { isLoading, error, data } = useMe ( ) ;
19
23
You can’t perform that action at this time.
0 commit comments