|
@@ -56,6 +56,7 @@ export const RoomPage = () => {
|
|
|
const textField = document.getElementById('entry') as HTMLInputElement;
|
|
|
const chat = document.getElementById('chat') as HTMLDivElement;
|
|
|
if (textField.value.trim()) {
|
|
|
+ textField.focus();
|
|
|
const msg = encoder.encode(textField.value);
|
|
|
currentRoom.localParticipant.publishData(msg, 0);
|
|
|
chat.innerHTML += `<div style="color:yellow">${currentRoom.localParticipant.identity} (me): ${textField.value}</div>`;
|