march_list = await(response.json());
if (response.ok) {
march_list = march_list.filter(function(room) {
- return room.hasnewmsgs;
+ return(room.hasnewmsgs && room.default_view == views.VIEW_BBS);
});
march_list = march_list.sort(function(a,b) {
if (a.floor != b.floor) {
// This function is the dispatcher that determines the correct view for a room, and calls the correct renderer.
function render_room_view() {
- document.getElementById("ctdl-newmsg-button").style.display = "none"; // the view renderer will set this
+ // The view renderer will set its own room navigation buttons
+ for (const d of ["ctdl-newmsg-button", "ctdl-ungoto-button", "ctdl-skip-button", "ctdl-goto-button"]) {
+ console.log(d);
+ document.getElementById(d).style.display = "none";
+ }
+
clear_sidebar_selection();
document.getElementById("ctdl-main").innerHTML = _("Loading messages from server, please wait");