tunnel.isRoom => C.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4089 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-12-30 01:23:44 +00:00
parent 09ddfffa6b
commit 1d13c25ded
2 changed files with 60 additions and 9 deletions

View File

@ -4,7 +4,6 @@ var g_database = new Database('core');
let g_attendants = {};
const k_use_create_history_stream = false;
const k_blobs_concurrent_target = 8;
const k_settings = JSON.parse(g_database.get('settings') ?? '{"room": true}');
function following(db, id) {
var o = db.get(id + ":following");
@ -195,14 +194,6 @@ ssb.addRpc(['blobs', 'createWants'], function(request) {
requestMoreBlobs(request);
});
ssb.addRpc(['tunnel', 'isRoom'], function(request) {
if (k_settings.room) {
request.send_json({"name": "tilde friends tunnel", "membership": false, "features": ["tunnel", "room1"]});
} else {
request.send_json(false);
}
});
function notify_attendant_changed(id, type) {
if (!id) {
print(`notify_attendant_changed called with id=${id}`);