From a1a210b63db6406ec4b2fd558aadb0084f0a61ef Mon Sep 17 00:00:00 2001 From: leejinho Date: Thu, 2 Apr 2020 17:50:42 +0900 Subject: [PATCH] =?UTF-8?q?bugfix=20::=20=ED=83=AD=EC=9D=B4=20=EB=93=A4?= =?UTF-8?q?=EC=96=B4=EA=B0=84=20=EB=AC=B8=EC=9E=90=EC=97=B4=20=EC=A0=84?= =?UTF-8?q?=EC=86=A1=20=EC=95=88=EB=90=98=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95.=20>=20=ED=83=AD=20=3D>=20=EA=B3=B5=EB=B0=B1?= =?UTF-8?q?=204=EA=B0=9C=EB=A1=9C=20=EC=B9=98=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../messenger/components/main-contents/messages.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/messages.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/messages.component.ts index b48a0031..cb6ae43c 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/messages.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/messages.component.ts @@ -878,6 +878,9 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit { /** Send Event */ async onSendMessage(message: string) { + if (!!message || message.trim().length > 0) { + message = message.replace(/\t/g, ' '); + } this.chatMessages.initEventMore(); if (!this.selectedSticker) { @@ -2356,7 +2359,7 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit { }); if (result.selected.text) { - this.onSendMessage(data.text.replace(/\t/g, ' ')); + this.onSendMessage(data.text); } if (result.selected.image) {