We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78fa341 commit 6e3dd43Copy full SHA for 6e3dd43
package/src/components/ChannelPreview/hooks/useChannelPreviewData.ts
@@ -29,7 +29,7 @@ export const useChannelPreviewData = (
29
useEffect(() => {
30
const { unsubscribe } = client.on('draft.updated', (event) => {
31
const { cid, draft } = event;
32
- if (!draft || cid !== channel.cid) {
+ if (!draft || cid !== channel.cid || draft.parent_id) {
33
return;
34
}
35
channel.messageComposer.initState({ composition: draft });
@@ -40,7 +40,7 @@ export const useChannelPreviewData = (
40
41
const { unsubscribe } = client.on('draft.deleted', (event) => {
42
43
44
45
46
0 commit comments