From 749960b262591650f1b66f5e24706022121c1137 Mon Sep 17 00:00:00 2001 From: balzack Date: Sun, 5 Mar 2023 23:23:49 -0800 Subject: [PATCH] fixing asset upload on contact hosted channel --- app/mobile/src/context/useCardContext.hook.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mobile/src/context/useCardContext.hook.js b/app/mobile/src/context/useCardContext.hook.js index 2d995456..10c53111 100644 --- a/app/mobile/src/context/useCardContext.hook.js +++ b/app/mobile/src/context/useCardContext.hook.js @@ -376,7 +376,7 @@ export function useCardContext() { const node = profile?.node; if (files?.length > 0) { const topicId = await addContactChannelTopic(node, cardToken, channelId, null, null, null); - upload.actions.addContactTopic(node, cardToken, cardId, channelId, topicId, files, async (assets) => { + upload.actions.addTopic(node, cardToken, channelId, topicId, files, async (assets) => { const subject = message(assets); await setContactChannelTopicSubject(node, cardToken, channelId, topicId, type, subject); }, async () => { @@ -386,7 +386,7 @@ export function useCardContext() { catch (err) { console.log(err); } - }); + }, cardId); } else { const subject = message([]);