# 이슈처리 213
This commit is contained in:
parent
254bc2c05b
commit
aa2bdad471
|
@ -61,6 +61,7 @@ import {
|
||||||
} from '../../dialogs/message/message-write.dialog.component';
|
} from '../../dialogs/message/message-write.dialog.component';
|
||||||
import { UserInfo } from '@ucap-webmessenger/protocol-sync';
|
import { UserInfo } from '@ucap-webmessenger/protocol-sync';
|
||||||
import { EmployeeType } from '@ucap-webmessenger/protocol-room';
|
import { EmployeeType } from '@ucap-webmessenger/protocol-room';
|
||||||
|
import { map } from 'rxjs/operators';
|
||||||
|
|
||||||
export interface MessageTypeData {
|
export interface MessageTypeData {
|
||||||
displayName: string;
|
displayName: string;
|
||||||
|
@ -142,19 +143,39 @@ export class MessageBoxComponent
|
||||||
});
|
});
|
||||||
|
|
||||||
this.messageRetrieveList$ = this.store.pipe(
|
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(
|
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(
|
this.messageReservationList$ = this.store.pipe(
|
||||||
select(
|
select(
|
||||||
AppStore.MessengerSelector.MessageSelector.selectAllReservationList
|
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(
|
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
|
this.messageDetailInfo = this.store
|
||||||
|
|
Loading…
Reference in New Issue
Block a user