From 451c01342149efd6193a1fd07399143725b8bdc9 Mon Sep 17 00:00:00 2001 From: leejh Date: Fri, 25 Oct 2019 17:51:33 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=EB=8A=A5=EC=B6=94=EA=B0=80=20::=20?= =?UTF-8?q?=EB=8C=80=ED=99=94=20=EB=82=98=EC=97=90=EA=B2=8C=20=EC=A0=84?= =?UTF-8?q?=EB=8B=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../messenger/components/messages.component.ts | 13 +++++++++++++ .../src/lib/components/messages.component.html | 3 +++ 2 files changed, 16 insertions(+) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts index a837ee28..3ca24a96 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts @@ -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': diff --git a/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.html b/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.html index bedff092..c211ed7c 100644 --- a/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.html +++ b/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.html @@ -98,6 +98,7 @@ *ngSwitchCase="EventType.MassText" [message]="message" (massDetail)="onMassDetail($event)" + (contextmenu)="onContextMenuMessage($event, message)" >