]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/room_functions.c
Client side of SLRP is done
[citadel.git] / webcit-ng / room_functions.c
index da325f32acb53ed88e74e16a9329c0c72af61ba0..c0c67569fd0974fbc9832e6efaf79b0338a8fad0 100644 (file)
@@ -129,6 +129,13 @@ 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
+}
+
+
 // Client requested an object in a room.
 void object_in_room(struct http_transaction *h, struct ctdlsession *c) {
        char buf[1024];
@@ -148,6 +155,11 @@ void object_in_room(struct http_transaction *h, struct ctdlsession *c) {
                return;
        }
 
+       if (!strcasecmp(buf, "slrp")) {                 // Set the Last Read Pointer
+               set_last_read_pointer(h, c);
+               return;
+       }
+
        // If we get to this point, the client is requesting a specific object *in* the room.
 
        if ((c->room_default_view == VIEW_CALENDAR)     // room types where objects are referenced by EUID