diff --git a/modules/page/html/render/public.js b/modules/page/html/render/public.js index cbe57c355..faf85ec52 100644 --- a/modules/page/html/render/public.js +++ b/modules/page/html/render/public.js @@ -109,14 +109,17 @@ exports.create = function (api) { h('button -pub -full', { 'ev-click': api.invite.sheet }, i18n('+ Join Pub')), - h('SplitButton', [ - h('button -createInvite', { - 'ev-click': api.dhtInvite.create.sheet - }, i18n('Create Invite')), - h('button -acceptInvite', { - 'ev-click': api.dhtInvite.accept.sheet - }, i18n('Accept Invite')) - ]), + + // disabling DHT invites until they work in sbot@13 + // + // h('SplitButton', [ + // h('button -createInvite', { + // 'ev-click': api.dhtInvite.create.sheet + // }, i18n('Create Invite')), + // h('button -acceptInvite', { + // 'ev-click': api.dhtInvite.accept.sheet + // }, i18n('Accept Invite')) + // ]), when(loading, [ h('Loading') ], [ when(computed(channels, x => x.length), h('h2', i18n('Active Channels'))), diff --git a/server-process.js b/server-process.js index c90e53ae6..94ddc6af3 100644 --- a/server-process.js +++ b/server-process.js @@ -3,19 +3,21 @@ var Path = require('path') var electron = require('electron') var spawn = require('child_process').spawn var fixPath = require('fix-path') -var DHT = require('multiserver-dht') +// var DHT = require('multiserver-dht') -function dhtTransport (sbot) { - sbot.multiserver.transport({ - name: 'dht', - create: dhtConfig => { - return DHT({ - keys: sbot.dhtInvite.channels(), - port: dhtConfig.port - }) - } - }) -} +// removing DHT invites until they work in sbot@13 +// +// function dhtTransport (sbot) { +// sbot.multiserver.transport({ +// name: 'dht', +// create: dhtConfig => { +// return DHT({ +// keys: sbot.dhtInvite.channels(), +// port: dhtConfig.port +// }) +// } +// }) +// } var createSbot = require('scuttlebot') .use(require('scuttlebot/plugins/master')) @@ -27,8 +29,8 @@ var createSbot = require('scuttlebot') .use(require('ssb-blobs')) .use(require('ssb-backlinks')) .use(require('ssb-private')) - .use(require('ssb-dht-invite')) // this one must come before dhtTransport - .use(dhtTransport) + // .use(require('ssb-dht-invite')) // this one must come before dhtTransport + // .use(dhtTransport) .use(require('scuttlebot/plugins/invite')) .use(require('scuttlebot/plugins/local')) .use(require('scuttlebot/plugins/logging'))