bugfix 스티커 연속으로 보내지지 않는 버그 수정

This commit is contained in:
leejinho 2019-11-27 15:40:09 +09:00
parent a4e018eef3
commit 2e984a2fa2

View File

@ -511,7 +511,7 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
if (!!this.selectedSticker) { if (!!this.selectedSticker) {
// Send Sticker // Send Sticker
if (message.trim().length > CONST.MASSTEXT_LEN) { if (!!message && message.trim().length > CONST.MASSTEXT_LEN) {
const result = await this.dialogService.open< const result = await this.dialogService.open<
AlertDialogComponent, AlertDialogComponent,
AlertDialogData, AlertDialogData,
@ -529,7 +529,7 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
const stickerJson: StickerEventJson = { const stickerJson: StickerEventJson = {
name: '스티커', name: '스티커',
file: this.selectedSticker.index, file: this.selectedSticker.index,
chat: message.trim() chat: !!message ? message.trim() : ''
}; };
this.store.dispatch( this.store.dispatch(
EventStore.send({ EventStore.send({