From 2e984a2fa249a4341f171121d889b89aa9438409 Mon Sep 17 00:00:00 2001 From: leejinho Date: Wed, 27 Nov 2019 15:40:09 +0900 Subject: [PATCH] =?UTF-8?q?bugfix=20=EC=8A=A4=ED=8B=B0=EC=BB=A4=20?= =?UTF-8?q?=EC=97=B0=EC=86=8D=EC=9C=BC=EB=A1=9C=20=EB=B3=B4=EB=82=B4?= =?UTF-8?q?=EC=A7=80=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/layouts/messenger/components/messages.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 00636354..2a556d99 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 @@ -511,7 +511,7 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit { if (!!this.selectedSticker) { // Send Sticker - if (message.trim().length > CONST.MASSTEXT_LEN) { + if (!!message && message.trim().length > CONST.MASSTEXT_LEN) { const result = await this.dialogService.open< AlertDialogComponent, AlertDialogData, @@ -529,7 +529,7 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit { const stickerJson: StickerEventJson = { name: '스티커', file: this.selectedSticker.index, - chat: message.trim() + chat: !!message ? message.trim() : '' }; this.store.dispatch( EventStore.send({