# 이슈처리 213

This commit is contained in:
leejinho 2020-02-06 12:51:23 +09:00
parent 254bc2c05b
commit aa2bdad471

View File

@ -61,6 +61,7 @@ import {
} from '../../dialogs/message/message-write.dialog.component';
import { UserInfo } from '@ucap-webmessenger/protocol-sync';
import { EmployeeType } from '@ucap-webmessenger/protocol-room';
import { map } from 'rxjs/operators';
export interface MessageTypeData {
displayName: string;
@ -142,19 +143,39 @@ export class MessageBoxComponent
});
this.messageRetrieveList$ = this.store.pipe(
select(AppStore.MessengerSelector.MessageSelector.selectAllReceiveList)
select(AppStore.MessengerSelector.MessageSelector.selectAllReceiveList),
map(list =>
list.sort((a, b) =>
a.regDate > b.regDate ? -1 : a.regDate < b.regDate ? 1 : 0
)
)
);
this.messageSendList$ = this.store.pipe(
select(AppStore.MessengerSelector.MessageSelector.selectAllSendList)
select(AppStore.MessengerSelector.MessageSelector.selectAllSendList),
map(list =>
list.sort((a, b) =>
a.regDate > b.regDate ? -1 : a.regDate < b.regDate ? 1 : 0
)
)
);
this.messageReservationList$ = this.store.pipe(
select(
AppStore.MessengerSelector.MessageSelector.selectAllReservationList
),
map(list =>
list.sort((a, b) =>
a.regDate > b.regDate ? -1 : a.regDate < b.regDate ? 1 : 0
)
)
);
this.messageSearchList$ = this.store.pipe(
select(AppStore.MessengerSelector.MessageSelector.selectAllSearchList)
select(AppStore.MessengerSelector.MessageSelector.selectAllSearchList),
map(list =>
list.sort((a, b) =>
a.regDate > b.regDate ? -1 : a.regDate < b.regDate ? 1 : 0
)
)
);
this.messageDetailInfo = this.store