diff --git a/net/web/src/context/useCardContext.hook.js b/net/web/src/context/useCardContext.hook.js index b7d995a6..1b40292d 100644 --- a/net/web/src/context/useCardContext.hook.js +++ b/net/web/src/context/useCardContext.hook.js @@ -284,7 +284,8 @@ export function useCardContext() { let node = cardProfile.node; if (files?.length) { const topicId = await addContactChannelTopic(node, token, channelId, null, null, null); - upload.actions.addContactTopic(node, token, cardId, channelId, topicId, files, async (assets) => { + const contact = { server: node, cardId }; + upload.actions.addTopic(token, channelId, topicId, files, async (assets) => { const subject = message(assets); await setContactChannelTopicSubject(node, token, channelId, topicId, type, subject); }, async () => { @@ -294,7 +295,7 @@ export function useCardContext() { catch(err) { console.log(err); } - }); + }, contact); } else { const subject = message([]); diff --git a/net/web/src/context/useUploadContext.hook.js b/net/web/src/context/useUploadContext.hook.js index 995189f5..9f2174e5 100644 --- a/net/web/src/context/useUploadContext.hook.js +++ b/net/web/src/context/useUploadContext.hook.js @@ -59,12 +59,13 @@ export function useUploadContext() { const actions = { addTopic: (token, channelId, topicId, files, success, failure, contact) => { if (contact) { - const { server, token, cardId } = contact; + const { server, cardId } = contact; let host = ""; if (server) { host = `https://${server}` } + const controller = new AbortController(); const entry = { index: index.current, diff --git a/net/web/src/session/conversation/addTopic/AddTopic.jsx b/net/web/src/session/conversation/addTopic/AddTopic.jsx index 1e87508e..52936eb4 100644 --- a/net/web/src/session/conversation/addTopic/AddTopic.jsx +++ b/net/web/src/session/conversation/addTopic/AddTopic.jsx @@ -35,6 +35,7 @@ export function AddTopic({ contentKey }) { modal.error({ title: 'Failed to Post Message', content: 'Please try again.', + bodyStyle: { padding: 16 }, }); } } diff --git a/net/web/src/session/details/Details.jsx b/net/web/src/session/details/Details.jsx index 3f23006a..617e9a5c 100644 --- a/net/web/src/session/details/Details.jsx +++ b/net/web/src/session/details/Details.jsx @@ -181,11 +181,11 @@ export function Details({ cardId, channelId, closeDetails, closeConversation, op + bodyStyle={{ padding: 16 }} onCancel={actions.clearEditSubject}> + bodyStyle={{ padding: 16 }} onCancel={actions.clearEditMembers}>