Skip to content

Commit bec1f14

Browse files
fix: update event handler upon channel config update (#1969)
1 parent af7272a commit bec1f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Channel/Channel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ const ChannelInner = <
484484
client.off('user.deleted', handleEvent);
485485
notificationTimeouts.forEach(clearTimeout);
486486
};
487-
}, [channel.cid, doMarkReadRequest]);
487+
}, [channel.cid, doMarkReadRequest, channelConfig?.read_events]);
488488

489489
useEffect(() => {
490490
if (!state.thread) return;

0 commit comments

Comments
 (0)