From 43655bc4161858e478fad2603d55eb62fc36efc8 Mon Sep 17 00:00:00 2001 From: balzack Date: Wed, 28 Dec 2022 16:05:35 -0800 Subject: [PATCH] fix for card channel topics not saving unsealed message --- app/mobile/src/context/useCardContext.hook.js | 2 +- app/mobile/src/context/useConversationContext.hook.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mobile/src/context/useCardContext.hook.js b/app/mobile/src/context/useCardContext.hook.js index 4ffcd100..d8525189 100644 --- a/app/mobile/src/context/useCardContext.hook.js +++ b/app/mobile/src/context/useCardContext.hook.js @@ -620,7 +620,7 @@ export function useCardContext() { }, setChannelTopicUnsealedDetail: async (cardId, channelId, topicId, revision, unsealed) => { const { guid } = session.current; - await store.actions.setCardChannelTopicItemUnsealedDetail(guid, cardId, channelId, revision, unsealed); + await store.actions.setCardChannelTopicItemUnsealedDetail(guid, cardId, channelId, topicId, revision, unsealed); }, removeChannel: async (cardId, channelId) => { const { detail, profile } = getCardEntry(cardId); diff --git a/app/mobile/src/context/useConversationContext.hook.js b/app/mobile/src/context/useConversationContext.hook.js index 659f484b..c5970b39 100644 --- a/app/mobile/src/context/useConversationContext.hook.js +++ b/app/mobile/src/context/useConversationContext.hook.js @@ -491,7 +491,7 @@ export function useConversationContext() { const { cardId, channelId } = conversationId.current; if (cardId) { - await card.actions.setChannelTopicUnsealedDetail(cardId, channelId, topic.topicId, topic.detailRevision, topic.unsealedDetial); + await card.actions.setChannelTopicUnsealedDetail(cardId, channelId, topic.topicId, topic.detailRevision, topic.unsealedDetail); } else { await channel.actions.setTopicUnsealedDetail(channelId, topic.topicId, topic.detailRevision, topic.unsealedDetail);