[mirotalk] - ops fix typo

This commit is contained in:
Miroslav Pejic
2023-02-18 19:29:19 +01:00
parent f535b3515d
commit 83f8db1cfc
+6 -8
View File
@@ -4983,14 +4983,12 @@ function addMsgerPrivateBtn(msgerPrivateBtn, msgerPrivateMsgInput, peerId) {
};
function sendPrivateMessage() {
let pMsg = msgerPrivateMsgInput.value.trim();
// let pMsg = checkMsg(msgerPrivateMsgInput.value.trim());
// if (!pMsg) {
// msgerPrivateMsgInput.value = '';
// isChatPasteTxt = false;
// return;
// }
let pMsg = checkMsg(msgerPrivateMsgInput.value.trim());
if (!pMsg) {
msgerPrivateMsgInput.value = '';
isChatPasteTxt = false;
return;
}
let toPeerName = msgerPrivateBtn.value;
emitMsg(myPeerName, toPeerName, pMsg, true, peerId);
appendMessage(myPeerName, rightChatAvatar, 'right', pMsg + '<hr>Private message to ' + toPeerName, true);