Skip to content

Commit

Permalink
Merge pull request #1002 from kaloudis/private-channels-default
Browse files Browse the repository at this point in the history
OpenChannel: don't announce channels by default
  • Loading branch information
kaloudis committed May 27, 2022
2 parents 2e2ef1b + 0c2c50e commit 4ecc56a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
"views.Wallet.Channels.open": "Open Channel",
"views.Wallet.Channels.inactive": "INACTIVE",
"views.Wallet.Channels.private": "Private",
"views.OpenChannel.announceChannel": "Announce channel",
"views.Wallet.Channels.local": "Local",
"views.Wallet.Channels.remote": "Remote",
"views.Wallet.Channels.noChannels": "No Channels",
Expand Down
6 changes: 3 additions & 3 deletions views/OpenChannel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class OpenChannel extends React.Component<
min_confs: 1,
spend_unconfirmed: false,
sat_per_byte: '2',
privateChannel: false,
privateChannel: true,
host: '',
suggestImport: '',
utxos: [],
Expand Down Expand Up @@ -485,10 +485,10 @@ export default class OpenChannel extends React.Component<
color: themeColor('secondaryText')
}}
>
{localeString('views.OpenChannel.private')}
{localeString('views.OpenChannel.announceChannel')}
</Text>
<Switch
value={privateChannel}
value={!privateChannel}
onValueChange={() =>
this.setState({
privateChannel: !privateChannel
Expand Down

0 comments on commit 4ecc56a

Please sign in to comment.