Skip to content

Commit c18b027

Browse files
committed
Add support for sending chat questions
1 parent 008d67e commit c18b027

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/notepadhandler.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,22 @@ export class NoteScreenConnection extends CommonConnection {
372372
})
373373
})
374374

375+
socket.on('chatquestion', (cmd) => {
376+
if (cmd.text) {
377+
const displayname = socket.decoded_token.user.displayname
378+
379+
this.notesio.to(notepadscreenid.roomname).emit('chatquestion', {
380+
displayname: displayname,
381+
text: cmd.text,
382+
encData: cmd.encData,
383+
keyindex: cmd.keyindex,
384+
iv: cmd.iv,
385+
resend: !!cmd.resend,
386+
showSendername: !!cmd.showSendername
387+
})
388+
}
389+
})
390+
375391
socket.on('sendboards', async (cmd) => {
376392
await loadlectprom
377393
// console.log('notepad connected, send board data')

0 commit comments

Comments
 (0)