diff --git a/frontend/src/components/TradeBox/EncryptedChat/index.tsx b/frontend/src/components/TradeBox/EncryptedChat/index.tsx index e4f6dea4..83d16fd3 100644 --- a/frontend/src/components/TradeBox/EncryptedChat/index.tsx +++ b/frontend/src/components/TradeBox/EncryptedChat/index.tsx @@ -8,7 +8,6 @@ import { FederationContext, type UseFederationStoreType, } from '../../../contexts/FederationContext'; -import { AppContext, UseAppStoreType } from '../../../contexts/AppContext'; interface Props { order: Order; @@ -43,7 +42,6 @@ const EncryptedChat: React.FC = ({ status, }: Props): React.JSX.Element => { const [turtleMode, setTurtleMode] = useState(false); - const { settings } = useContext(AppContext); const { garage } = useContext(GarageContext); const { federation } = useContext(FederationContext); @@ -76,18 +74,22 @@ const EncryptedChat: React.FC = ({ if (!slot?.nostrSecKey || !publicKey) return; - const recipient = { - publicKey, - relayUrl: coordinator.getRelayUrl(settings.network), - }; + try { + const recipient = { + publicKey, + relayUrl: coordinator.getRelayUrl(coordinator.url), + }; - const wrappedEvent = nip17.wrapEvent(slot?.nostrSecKey, recipient, content); + const wrappedEvent = nip17.wrapEvent(slot?.nostrSecKey, recipient, content); const oneMonth = 2419200; wrappedEvent.tags.push(['expiration', (wrappedEvent.created_at + oneMonth).toString()]); - federation.roboPool.sendEvent(wrappedEvent); + federation.roboPool.sendEvent(wrappedEvent); + } catch (error) { + console.error('Nostr nip17 error:', error); + } }; return turtleMode ? ( diff --git a/mobile/android/zapstore.yaml b/mobile/android/zapstore.yaml index 29d13e5e..63e3b47a 100644 --- a/mobile/android/zapstore.yaml +++ b/mobile/android/zapstore.yaml @@ -1,7 +1,6 @@ -identifier: com.robosats name: Robosats summary: A simple and private bitcoin exchange -release_repository: https://github.com/RoboSats/robosats +repository: https://github.com/RoboSats/robosats images: - ../../fastlane/metadata/en-US/images/phoneScreenshots/01.jpg - ../../fastlane/metadata/en-US/images/phoneScreenshots/02.jpg