Fossil SCM

Get the /chat-fetch-one handler to lift the back-off delay on success.

stephan 2025-04-10 00:16 chat-backoff-timer
Commit d3baf9d5ecffe184644807decc067d274727821e140cfd688a1d5a91d088ef04
1 file changed -3
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -842,13 +842,10 @@
842842
// We need to fetch the plain-text version...
843843
const self = this;
844844
F.fetch('chat-fetch-one',{
845845
urlParams:{ name: id, raw: true},
846846
responseType: 'json',
847
- function(){
848
- Chat.ajaxStart();
849
- },
850847
onload: function(msg){
851848
reportConnectionReestablished();
852849
content.$elems[1] = D.append(D.pre(),msg.xmsg);
853850
content.$elems[1]._xmsgRaw = msg.xmsg/*used for copy-to-clipboard feature*/;
854851
self.toggleTextMode(e);
855852
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -842,13 +842,10 @@
842 // We need to fetch the plain-text version...
843 const self = this;
844 F.fetch('chat-fetch-one',{
845 urlParams:{ name: id, raw: true},
846 responseType: 'json',
847 function(){
848 Chat.ajaxStart();
849 },
850 onload: function(msg){
851 reportConnectionReestablished();
852 content.$elems[1] = D.append(D.pre(),msg.xmsg);
853 content.$elems[1]._xmsgRaw = msg.xmsg/*used for copy-to-clipboard feature*/;
854 self.toggleTextMode(e);
855
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -842,13 +842,10 @@
842 // We need to fetch the plain-text version...
843 const self = this;
844 F.fetch('chat-fetch-one',{
845 urlParams:{ name: id, raw: true},
846 responseType: 'json',
 
 
 
847 onload: function(msg){
848 reportConnectionReestablished();
849 content.$elems[1] = D.append(D.pre(),msg.xmsg);
850 content.$elems[1]._xmsgRaw = msg.xmsg/*used for copy-to-clipboard feature*/;
851 self.toggleTextMode(e);
852

Keyboard Shortcuts

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