Fossil SCM
Added lmtime (local mtime) parameter to /chat-send calls, per chat discussion.
Commit
152ac599e8a4162c0fc5d5f1bf4a6676c488c24b87ca17cf48ddfc0463b54eb8
Parent
e390b95bbc58444…
1 file changed
+1
+1
| --- src/chat.js | ||
| +++ src/chat.js | ||
| @@ -501,10 +501,11 @@ | ||
| 501 | 501 | segfaults, and i have no clue why! */; |
| 502 | 502 | const msg = this.inputValue(); |
| 503 | 503 | if(msg) fd.set('msg',msg); |
| 504 | 504 | const file = BlobXferState.blob || this.e.inputFile.files[0]; |
| 505 | 505 | if(file) fd.set("file", file); |
| 506 | + fd.set("lmtime", new Date().toISOString()); | |
| 506 | 507 | if( msg || file ){ |
| 507 | 508 | fetch("chat-send",{ |
| 508 | 509 | method: 'POST', |
| 509 | 510 | body: fd |
| 510 | 511 | }); |
| 511 | 512 |
| --- 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 |