Skip to content

Commit

Permalink
remove restart for setting zero conf peers
Browse files Browse the repository at this point in the history
Signed-off-by: Nitesh Balusu <[email protected]>
  • Loading branch information
niteshbalusu11 authored and hsjoberg committed Jul 17, 2023
1 parent 3d935f5 commit 705d00c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/windows/Settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { useStoreActions, useStoreState } from "../../state/store";

import { Alert } from "../../utils/alert";
import BlixtWallet from "../../components/BlixtWallet";
import { Chain } from "../../utils/build";
import Clipboard from "@react-native-community/clipboard";
import Content from "../../components/Content";
import DialogAndroid from "react-native-dialogs";
Expand All @@ -33,7 +34,6 @@ import TorSvg from "./TorSvg";
import { fromUnixTime } from "date-fns";
import { readFile } from "react-native-fs";
import { useTranslation } from "react-i18next";
import { Chain } from "../../utils/build";

let ReactNativePermissions: any;
if (PLATFORM !== "macos") {
Expand Down Expand Up @@ -729,14 +729,11 @@ ${t("LN.inbound.dialog.msg3")}`;
onPress: async (text) => {
if (!text) {
await changeZeroConfPeers([]);
restartNeeded();
return;
}

const pubkeys = text.split(",").map((n) => n.trim());
await changeZeroConfPeers(pubkeys);

restartNeeded();
},
},
],
Expand Down

0 comments on commit 705d00c

Please sign in to comment.