mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
fix for card channel topics not saving unsealed message
This commit is contained in:
parent
acc846c88f
commit
43655bc416
@ -620,7 +620,7 @@ export function useCardContext() {
|
|||||||
},
|
},
|
||||||
setChannelTopicUnsealedDetail: async (cardId, channelId, topicId, revision, unsealed) => {
|
setChannelTopicUnsealedDetail: async (cardId, channelId, topicId, revision, unsealed) => {
|
||||||
const { guid } = session.current;
|
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) => {
|
removeChannel: async (cardId, channelId) => {
|
||||||
const { detail, profile } = getCardEntry(cardId);
|
const { detail, profile } = getCardEntry(cardId);
|
||||||
|
@ -491,7 +491,7 @@ export function useConversationContext() {
|
|||||||
|
|
||||||
const { cardId, channelId } = conversationId.current;
|
const { cardId, channelId } = conversationId.current;
|
||||||
if (cardId) {
|
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 {
|
else {
|
||||||
await channel.actions.setTopicUnsealedDetail(channelId, topic.topicId, topic.detailRevision, topic.unsealedDetail);
|
await channel.actions.setTopicUnsealedDetail(channelId, topic.topicId, topic.detailRevision, topic.unsealedDetail);
|
||||||
|
Loading…
Reference in New Issue
Block a user