[mirotalksfu] - add trim
هذا الالتزام موجود في:
@@ -2199,7 +2199,7 @@ class RoomClient {
|
|||||||
isChatPasteTxt = false;
|
isChatPasteTxt = false;
|
||||||
return this.userLog('info', 'No participants in the room', 'top-end');
|
return this.userLog('info', 'No participants in the room', 'top-end');
|
||||||
}
|
}
|
||||||
let peer_msg = this.formatMsg(chatMessage.value);
|
let peer_msg = this.formatMsg(chatMessage.value.trim());
|
||||||
if (!peer_msg) {
|
if (!peer_msg) {
|
||||||
return this.cleanMessage();
|
return this.cleanMessage();
|
||||||
}
|
}
|
||||||
@@ -2238,7 +2238,7 @@ class RoomClient {
|
|||||||
},
|
},
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.value) {
|
if (result.value) {
|
||||||
let peer_msg = this.formatMsg(result.value);
|
let peer_msg = this.formatMsg(result.value.trim());
|
||||||
if (!peer_msg) {
|
if (!peer_msg) {
|
||||||
return this.cleanMessage();
|
return this.cleanMessage();
|
||||||
}
|
}
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم