Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Commit

Permalink
Fix the Hops setting
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleMaas committed Feb 6, 2021
1 parent 21b8eb3 commit 6168a84
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion defaultprefs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"appTitle": "SSB Browser Demo",
"replicationHops": 1,
"replicationHops": 2,
"publicFilters": "",
"favoriteChannels": [],
"hiddenChannels": [],
Expand Down
3 changes: 3 additions & 0 deletions ui/browser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
const localPrefs = require('../localprefs')
const optionsForCore = {
caps: { shs: Buffer.from(localPrefs.getCaps(), 'base64') },
friends: {
hops: localPrefs.getHops()
},
hops: localPrefs.getHops(),
core: {
startOffline: localPrefs.getOfflineMode()
Expand Down
5 changes: 2 additions & 3 deletions ui/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ module.exports = function () {
<p>
<label for="replicationHops">{{ $t('settings.replicateHops') }}</label><br />
<select id="replicationHops" v-model="hops">
<option value="0">0 {{ $t('settings.directFollows') }}</option>
<option value="1">1</option>
<option value="1">1 {{ $t('settings.directFollows') }}</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
Expand Down Expand Up @@ -67,7 +66,7 @@ module.exports = function () {
locale: 'en',
localeOptions: [],
autorefresh: false,
hops: 1
hops: 2
}
},

Expand Down

0 comments on commit 6168a84

Please sign in to comment.