[mirotalksfu] - add clean/paste Chat input txt

هذا الالتزام موجود في:
Miroslav Pejic
2022-09-02 18:27:25 +02:00
الأصل 57d1fbbf2f
التزام f73bb1e8c1
4 ملفات معدلة مع 63 إضافات و4 حذوفات

عرض الملف

@@ -2029,6 +2029,22 @@ class RoomClient {
this.getId('chatEmojiButton').style.color = this.isChatEmojiOpen ? '#FFFF00' : '#FFFFFF';
}
cleanMessage() {
chatMessage.value = '';
}
pasteMessage() {
navigator.clipboard
.readText()
.then((text) => {
chatMessage.value = text;
isChatPasteTxt = true;
})
.catch((err) => {
console.error('Failed to read clipboard contents: ', err);
});
}
sendMessage() {
if (!this.thereIsParticipants()) {
chatMessage.value = '';