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 b9c49be commit ff53399Copy full SHA for ff53399
package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts
@@ -298,7 +298,8 @@ export const useLatestMessagePreview = <
298
299
useEffect(() => {
300
if (channelConfigExists) {
301
- const read_events = channel.getConfig()?.read_events;
+ const read_events =
302
+ !channel.disconnected && !!channel?.id && channel.getConfig()?.read_events;
303
if (typeof read_events === 'boolean') {
304
setReadEvents(read_events);
305
}
0 commit comments