bugfix :: 탭이 들어간 문자열 전송 안되는 문제 수정. > 탭 => 공백 4개로 치환
This commit is contained in:
parent
37084c90ab
commit
a1a210b63d
|
@ -878,6 +878,9 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
|
|
||||||
/** Send Event */
|
/** Send Event */
|
||||||
async onSendMessage(message: string) {
|
async onSendMessage(message: string) {
|
||||||
|
if (!!message || message.trim().length > 0) {
|
||||||
|
message = message.replace(/\t/g, ' ');
|
||||||
|
}
|
||||||
this.chatMessages.initEventMore();
|
this.chatMessages.initEventMore();
|
||||||
|
|
||||||
if (!this.selectedSticker) {
|
if (!this.selectedSticker) {
|
||||||
|
@ -2356,7 +2359,7 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (result.selected.text) {
|
if (result.selected.text) {
|
||||||
this.onSendMessage(data.text.replace(/\t/g, ' '));
|
this.onSendMessage(data.text);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result.selected.image) {
|
if (result.selected.image) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user