-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Reply Reaction 생성 / 삭제 구현 (#229)
* refactor: chat-type renaming - chat-type이 아닌 chatroom에 대한 타입이므로 이름 재정의를 함 * refactor: type명 변경에 따른 수정 * feat: chat-type 타입 정의 - Message, Reply의 상태를 관리하기 위한 타입 정의 * feat: Reply Actionbar 생성 - actionbarType을 둠으로 Message와 reply actionbar 분기 * feat: Message, Reply actionbar 적용 - chatId로 변경하면서 Actionbar 분기 * fix: replyTitle 액션바 잘리는 현상 해결 * refactor: emojiPicker modal type 변경 - message만이 아닌 reply에 대해서도 처리를 해줘야하므로 변경하였음. * refactor: store reactions타입 변경 - reply에서도 동일한 타입을 사용하게 되므로 파일명과 변수명을 변경하였음 * feat: reply reaction emit socket 정의 * feat: store thread create/delete 로직 구현 * fix: chatroomId request에서 제거 * feat: reply reaction 생성/삭제 socket event 등록 * refactor: EmojiBox 클릭에 따른 이벤트 매개변수화 * feat: EmojiPicker 누를 시 reply 소켓 이벤트 발생 * feat: Message / Reply 리액션 생성 삭제 구현
- Loading branch information
Showing
23 changed files
with
285 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
const ChatType = { | ||
DM: 'DM', | ||
Channel: 'Channel' | ||
Message: 'Message', | ||
ReplyTitle: 'ReplyTitle', | ||
Reply: 'Reply' | ||
}; | ||
|
||
export { ChatType }; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const ChatroomType = { | ||
DM: 'DM', | ||
Channel: 'Channel' | ||
}; | ||
|
||
export { ChatroomType }; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import { DefaultSectionName } from './default-section-name'; | ||
import { KeyCode } from './key-code'; | ||
import { ScrollEventType } from './scroll-event-type'; | ||
import { ChatroomType } from './chatroom-type'; | ||
import { ChatType } from './chat-type'; | ||
import { HttpStatusCode } from './http-status-code'; | ||
|
||
export { DefaultSectionName, KeyCode, ScrollEventType, ChatType, HttpStatusCode }; | ||
export { DefaultSectionName, KeyCode, ScrollEventType, ChatroomType, ChatType, HttpStatusCode }; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
import { LOAD_THREAD_ASYNC, INSERT_REPLY, LOAD_NEXT_REPLIES_ASYNC, replyState } from '@store/types/thread-types'; | ||
import { socketReplyReactionState } from '@socket/types/reaction-types'; | ||
import { | ||
LOAD_THREAD_ASYNC, | ||
INSERT_REPLY, | ||
LOAD_NEXT_REPLIES_ASYNC, | ||
ADD_REPLY_REACTION, | ||
DELETE_REPLY_REACTION, | ||
replyState | ||
} from '@store/types/thread-types'; | ||
|
||
export const loadThread = (messageId: number) => ({ type: LOAD_THREAD_ASYNC, payload: { messageId } }); | ||
export const InsertReply = (payload: replyState) => ({ type: INSERT_REPLY, payload }); | ||
export const loadNextReplies = (payload: any) => ({ type: LOAD_NEXT_REPLIES_ASYNC, payload }); | ||
export const createReplyReaction = (payload: socketReplyReactionState) => ({ type: ADD_REPLY_REACTION, payload }); | ||
export const deleteReplyReaction = (payload: socketReplyReactionState) => ({ type: DELETE_REPLY_REACTION, payload }); |
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
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
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
2 changes: 1 addition & 1 deletion
2
...mon/store/types/message-reactions-type.ts → .../src/common/store/types/reactions-type.ts
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
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
Oops, something went wrong.