git ssb

16+

Dominic / patchbay



Commit e9b818a585383638585d4b571a3c8ce262874218

Merge branch 'hops' of github.com:ssbc/patchbay into hops

mixmix committed on 5/29/2019, 2:31:01 AM
Parent: 0524824bf114bd868c66193a7b95a1d34b345240
Parent: 97f565d656e4a30ba8a5a5b10b85ad787ba4576e

Files changed

app/html/settings/friend-hops.jschanged
app/html/settings/friend-hops.jsView
@@ -29,18 +29,18 @@
2929 })
3030
3131 return {
3232 title: 'Friend Hops',
33- body: h('Friends', [
33+ body: h('FriendHops', [
3434 h('div.description', [
3535 'Specify whose content you replicate, and thus the size and shape of your network.'
3636 ]),
3737 h('div.slider', [
3838 h('datalist', { id: 'friends-hop-datalist' }, [
39- h('option', { value: 0, label: '0' }),
40- h('option', { value: 1, label: '1' }),
41- h('option', { value: 2, label: '2' }),
42- h('option', { value: 3, label: '3' })
39+ h('option', { value: 0, label: '0 - Only your messages' }),
40+ h('option', { value: 1, label: '1 - You and your friend\'s messages' }),
41+ h('option', { value: 2, label: '2 - You, your friend\'s, and your friend\'s friend\'s messages' }),
42+ h('option', { value: 3, label: '3 - You, your friend\'s, your friend\'s friend\'s, and their friend\'s messages' })
4343 ]),
4444 h('input', {
4545 type: 'range',
4646 attributes: { list: 'friends-hop-datalist' },
@@ -58,19 +58,8 @@
5858 ])
5959 }),
6060 ])
6161 }
62-
63- function updateHops (hops) {
64- onceTrue(api.sbot.obs.connection, sbot => {
65- if (hops === go) pubs.set({})
66- else {
67- sbot.friendPub.pubsWithinHops(hops, (_, pubsInHops) => {
68- pubs.set(pubsInHops)
69- })
70- }
71- })
72- }
7362 }
7463
7564 function updateConfig (hops) {
7665 const configCustom = api.config.sync.getCustom()

Built with git-ssb-web