finalEventDate is added

This commit is contained in:
병준 박 2019-10-10 15:02:56 +09:00
parent fdf1c14b7e
commit 150ebd56af
3 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
<div *ngFor="let room of roomList" (click)="onSelectedRoom(room)"> <div *ngFor="let room of roomList" (click)="onSelectedRoom(room)">
<div class="room-name">{{ getRoomName(room) }}</div> <div class="room-name">{{ getRoomName(room) }}</div>
<div class="room-name">{{ room.finalEventMessage }}</div> <div>{{ room.finalEventDate }}</div>
<div>{{ room.finalEventMessage }}</div>
</div> </div>

View File

@ -39,6 +39,7 @@ export const reducer = createReducer(
if (roomInfo.roomSeq === action.roomSeq) { if (roomInfo.roomSeq === action.roomSeq) {
roomList.push({ roomList.push({
...roomInfo, ...roomInfo,
finalEventDate: action.info.sendDate,
finalEventMessage: action.info.sentMessage finalEventMessage: action.info.sentMessage
}); });
} else { } else {

View File

@ -18,7 +18,7 @@ export enum EventType {
// L: 링크(Legacy) // L: 링크(Legacy)
Link = 'L', Link = 'L',
// R: 대화방명변경 // R: 대화방명변경
RenameRoom = '', RenameRoom = 'R',
// Y: 번역 // Y: 번역
Translation = 'Y', Translation = 'Y',
// Z: 대용량 번역 // Z: 대용량 번역