mirror of
https://github.com/RoboSats/robosats.git
synced 2025-08-02 07:31:58 +00:00
Merge pull request #1967 from RoboSats/fix-chat-older-versions
Fix chat older versions
This commit is contained in:
@ -72,11 +72,12 @@ const EncryptedChat: React.FC<Props> = ({
|
||||
const sendToNostr = (content: string): void => {
|
||||
const slot = garage.getSlot();
|
||||
const coordinator = federation.getCoordinator(order.shortAlias);
|
||||
const publicKey = order.is_maker ? order.taker_nostr_pubkey : order.maker_nostr_pubkey;
|
||||
|
||||
if (!slot?.nostrSecKey) return;
|
||||
if (!slot?.nostrSecKey || !publicKey) return;
|
||||
|
||||
const recipient = {
|
||||
publicKey: order.is_maker ? order.taker_nostr_pubkey : order.maker_nostr_pubkey,
|
||||
publicKey,
|
||||
relayUrl: coordinator.getRelayUrl(settings.network),
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user