Allow hiding rooms via custom config

main
gravel 3 weeks ago
parent 49ae1098da
commit c722d2a01a
No known key found for this signature in database
GPG Key ID: CA95FFF4E0123903

@ -246,6 +246,7 @@
public function is_off_record(): bool {
return (!$this->read && !$this->write)
|| $this->is_testing_room()
|| LocalConfig::get_instance()->is_hidden_room($this)
|| in_array("unlisted", $this->string_tags);
}

@ -126,6 +126,10 @@ class LocalConfig {
return $this->get_bool_override_value($room, 'stickied');
}
public function is_hidden_room(CommunityRoom $room): bool {
return $this->get_bool_override_value($room, 'hidden');
}
public function get_known_servers(): array {
return $this->known_servers;
}

Loading…
Cancel
Save