* ctdlprotocol.php: known room list fetch now sets subscript "hasnewmsgs"
[citadel.git] / ctdlphp / ctdlprotocol.php
index 0463ad5125e8accb647755c79e0ba2b855889936..a15686f3529ed4b6718579e610ea10a8620e4c20 100644 (file)
@@ -269,6 +269,13 @@ function ctdl_knrooms() {
                $tok = strtok("|");
                if ($tok) $thisline["access"] = $tok;
 
+               if ($thisline["access"] & 8) {
+                       $thisline["hasnewmsgs"] = TRUE;
+               }
+               else {
+                       $thisline["hasnewmsgs"] = FALSE;
+               }
+
                $num_lines = array_push($all_lines, $thisline);
        }