|
|
@ -49,6 +49,14 @@
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<?php foreach ($rooms as $id => $room): ?>
|
|
|
|
<?php foreach ($rooms as $id => $room): ?>
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
if ($room->read) {
|
|
|
|
|
|
|
|
// Skip unreadable rooms.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// While not necessary, this hack can later allow SOGS
|
|
|
|
|
|
|
|
// to pass server-wide info using hidden dummy rooms.
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$pubkey = $room->server->get_pubkey();
|
|
|
|
$pubkey = $room->server->get_pubkey();
|
|
|
|
$icon_hue = hexdec($pubkey[2] . $pubkey[2]);
|
|
|
|
$icon_hue = hexdec($pubkey[2] . $pubkey[2]);
|
|
|
|
$icon_color = "hsl($icon_hue, 80%, 50%)";
|
|
|
|
$icon_color = "hsl($icon_hue, 80%, 50%)";
|
|
|
|