forked from retoor/snek
feat: add channel attachment upload and retrieval with dedicated model, mapper, service, and view
This commit is contained in:
@@ -47,6 +47,11 @@
|
||||
document.querySelector("upload-button").addEventListener("upload",function(e){
|
||||
getInputField().focus();
|
||||
})
|
||||
document.querySelector("upload-button").addEventListener("uploaded",function(e){
|
||||
e.detail.files.forEach((file)=>{
|
||||
app.rpc.sendMessage(channelUid,``)
|
||||
})
|
||||
})
|
||||
textBox.addEventListener("paste", async (e) => {
|
||||
try {
|
||||
const clipboardItems = await navigator.clipboard.read();
|
||||
|
||||
Reference in New Issue
Block a user