-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
개요 - 채팅을 여러개 보냈을 때, 디자인 문서에 따르면면, 닉네임을 생략함. 수정정 사항 - `groupMessages` 함수 구현 -> 기존 메시지에서 메시지별로 그룹화하여 리턴 (어떤 사용자가 보냈는지를 기준으로 구분) - 알고리즘에서 `currentGroup`은 현재 묶이고 있는 채팅들이며, `groupedMesssage`에 들어감 - 마지막의 `if(currentGroup.length>0)`은, `forEach`를 다 돌고 남은 currentGroup도 넣어주기 위함임 (예시로 마지막이 `[message-B, message-B, message-A]` 일때, 알고리즘에 따르면 A도 그룹화해줘야하는데 이런 경우에 마지막 if문에서 넣어줌) - ChatBubble에서 언제 프로필과 닉네임을 보여줄지 정하는 showProfile boolean 변수 생성
- Loading branch information
1 parent
36e13c1
commit c30e8ff
Showing
2 changed files
with
45 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters