]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/room_functions.c
Skip/Goto are functionally complete.
[citadel.git] / webcit-ng / room_functions.c
index c0c67569fd0974fbc9832e6efaf79b0338a8fad0..0a8b73c416a131d488d678dbd236bf846c0bb702 100644 (file)
@@ -131,8 +131,15 @@ void read_room_info_banner(struct http_transaction *h, struct ctdlsession *c) {
 
 // Client is setting the "Last Read Pointer" (marking all messages as "seen" up to this message)
 void set_last_read_pointer(struct http_transaction *h, struct ctdlsession *c) {
-       syslog(LOG_DEBUG, "FIXME: set last read pointer");
-       do_404(h);              // FIXME do this
+       char cbuf[1024];
+       ctdl_printf(c, "SLRP %d", atoi(get_url_param(h, "last")));
+       ctdl_readline(c, cbuf, sizeof(cbuf));
+       if (cbuf[0] == '2') {
+               do_204(h);
+       }
+       else {
+               do_404(h);
+       }
 }