more webapp conversation refactor

This commit is contained in:
Roland Osborne 2023-01-26 16:14:26 -08:00
parent 1875ca759d
commit 18bd9c3f25

View File

@ -122,6 +122,10 @@ export function useConversation(cardId, channelId) {
}, [cardId, channelId]);
useEffect(() => {
const key = `${conversation.state.channel?.id}::${conversation.state.card?.id}`
const topicRevision = conversation.state.channel?.data?.topicRevision;
store.actions.setValue(key, topicRevision);
syncChannel();
// eslint-disable-next-line
}, [conversation.state, profile.state, card.state]);