From: Art Cancro Date: Thu, 8 Feb 2018 22:11:42 +0000 (-0500) Subject: disabled server-side message sequencing code X-Git-Tag: v939~422 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=32fe7887a4fc68e8148f79c4b9ec35ffbb2442d7 disabled server-side message sequencing code --- diff --git a/webcit-ng/forum_view.c b/webcit-ng/forum_view.c index 995a6e187..7745e019e 100644 --- a/webcit-ng/forum_view.c +++ b/webcit-ng/forum_view.c @@ -173,6 +173,7 @@ void thread_o_print(struct ctdlsession *c, StrBuf *sj, struct mthread *m, int nu } } +#if 0 // Threaded view (entry point) // @@ -289,3 +290,5 @@ void flat_view(struct http_transaction *h, struct ctdlsession *c, char *which) h->response_body = SmashStrBuf(&sj); return; } + +#endif diff --git a/webcit-ng/room_functions.c b/webcit-ng/room_functions.c index 21fe56460..12818421c 100644 --- a/webcit-ng/room_functions.c +++ b/webcit-ng/room_functions.c @@ -131,6 +131,7 @@ void object_in_room(struct http_transaction *h, struct ctdlsession *c) return; } +#if 0 if (!strncasecmp(buf, "threads", 5)) { // Client is requesting a threaded view (still kind of fuzzy here) threaded_view(h, c, &buf[5]); return; @@ -140,6 +141,7 @@ void object_in_room(struct http_transaction *h, struct ctdlsession *c) flat_view(h, c, &buf[5]); return; } +#endif if ( (c->room_default_view == VIEW_CALENDAR) // room types where objects are referenced by EUID || (c->room_default_view == VIEW_TASKS) @@ -166,6 +168,11 @@ void object_in_room(struct http_transaction *h, struct ctdlsession *c) syslog(LOG_DEBUG, "msgnum is %ld, method is %s", msgnum, h->method); + /* + * Does the client want us to render the message for them? + */ + // FIXME put that logic here + /* * Was the client actually requesting a specific component within the message? */ diff --git a/webcit-ng/static/js/views.js b/webcit-ng/static/js/views.js index ba1be9210..b569cd664 100644 --- a/webcit-ng/static/js/views.js +++ b/webcit-ng/static/js/views.js @@ -38,7 +38,7 @@ function render_room_view() { case views.VIEW_MAILBOX: // FIXME view mail rooms as forums for now case views.VIEW_BBS: - forum_readmessages("flat"); + forum_readmessages(); break; default: document.getElementById("main").innerHTML = "The view for " + current_room + " is " + current_view + " but there is no renderer." ; @@ -80,9 +80,9 @@ function XX_forum_readmessages(flat_or_threads) } -// Forum view -- let's have another go at this with the rendering done client-side +// Forum view (flat) -- let's have another go at this with the rendering done client-side // -function forum_readmessages(flat_or_threads) +function forum_readmessages() { var innerdivname = randomString(5); document.getElementById("main").innerHTML = "
" + "Last seen: " + last_seen + "
" ; } else {