mirror of
https://github.com/balzack/databag.git
synced 2025-03-13 00:50:03 +00:00
more webapp conversation refactor
This commit is contained in:
parent
1875ca759d
commit
18bd9c3f25
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user