bugfix :: 탭이 들어간 문자열 전송 안되는 문제 수정. > 탭 => 공백 4개로 치환

This commit is contained in:
leejinho 2020-04-02 17:50:42 +09:00
parent 37084c90ab
commit a1a210b63d

View File

@ -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) {