]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static/js/main.js
Client side of SLRP is done
[citadel.git] / webcit-ng / static / js / main.js
index 039a1e64b04a9ef2568b2b81642796b4eeaa382b..ba8dfb0252f74a8f0a0108f021e58f117bbf03f6 100644 (file)
@@ -109,6 +109,10 @@ function gotonext(which_oper) {
 
        if (which_oper == 2) {                                  // Goto needs to mark messages as seen
                console.log("FIXME set lrp to " + last_seen);
+               set_last_read_pointer = async() => {
+                       response = await fetch("/ctdl/r/" + escapeHTMLURI(current_room) + "/slrp?last=" + last_seen);
+               }
+               set_last_read_pointer();
        }
 
        if ((which_oper == 1) || (which_oper == 2)) {           // Skip or Goto both take us to the "next" room