기능추가 :: 대화 나에게 전달

This commit is contained in:
leejh 2019-10-25 17:51:33 +09:00
parent 9d185862ac
commit 451c013421
2 changed files with 16 additions and 0 deletions

View File

@ -360,6 +360,19 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewChecked {
break;
case 'REPLAY_TO_ME':
{
if (this.loginRes.talkWithMeBotSeq > -1) {
this.store.dispatch(
EventStore.forward({
senderSeq: this.loginRes.userSeq,
req: {
roomSeq: '-999',
eventType: message.type,
sentMessage: message.sentMessage
},
trgtUserSeqs: [this.loginRes.talkWithMeBotSeq]
})
);
}
}
break;
case 'DELETE':

View File

@ -98,6 +98,7 @@
*ngSwitchCase="EventType.MassText"
[message]="message"
(massDetail)="onMassDetail($event)"
(contextmenu)="onContextMenuMessage($event, message)"
>
</ucap-chat-message-box-mass>
<ucap-chat-message-box-file
@ -105,11 +106,13 @@
[message]="message"
(save)="onSave($event)"
(imageViewer)="onImageViewer($event)"
(contextmenu)="onContextMenuMessage($event, message)"
>
</ucap-chat-message-box-file>
<ucap-chat-message-box-sticker
*ngSwitchCase="EventType.Sticker"
[message]="message"
(contextmenu)="onContextMenuMessage($event, message)"
>
</ucap-chat-message-box-sticker>
<ucap-chat-message-box-recall