Fossil SCM

Added lmtime (local mtime) parameter to /chat-send calls, per chat discussion.

stephan 2020-12-26 19:43 trunk
Commit 152ac599e8a4162c0fc5d5f1bf4a6676c488c24b87ca17cf48ddfc0463b54eb8
1 file changed +1
--- src/chat.js
+++ src/chat.js
@@ -501,10 +501,11 @@
501501
segfaults, and i have no clue why! */;
502502
const msg = this.inputValue();
503503
if(msg) fd.set('msg',msg);
504504
const file = BlobXferState.blob || this.e.inputFile.files[0];
505505
if(file) fd.set("file", file);
506
+ fd.set("lmtime", new Date().toISOString());
506507
if( msg || file ){
507508
fetch("chat-send",{
508509
method: 'POST',
509510
body: fd
510511
});
511512
--- src/chat.js
+++ src/chat.js
@@ -501,10 +501,11 @@
501 segfaults, and i have no clue why! */;
502 const msg = this.inputValue();
503 if(msg) fd.set('msg',msg);
504 const file = BlobXferState.blob || this.e.inputFile.files[0];
505 if(file) fd.set("file", file);
 
506 if( msg || file ){
507 fetch("chat-send",{
508 method: 'POST',
509 body: fd
510 });
511
--- src/chat.js
+++ src/chat.js
@@ -501,10 +501,11 @@
501 segfaults, and i have no clue why! */;
502 const msg = this.inputValue();
503 if(msg) fd.set('msg',msg);
504 const file = BlobXferState.blob || this.e.inputFile.files[0];
505 if(file) fd.set("file", file);
506 fd.set("lmtime", new Date().toISOString());
507 if( msg || file ){
508 fetch("chat-send",{
509 method: 'POST',
510 body: fd
511 });
512

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button