Skip to content

Commit 5828137

Browse files
committed
fix: lint issues
1 parent e29c8cf commit 5828137

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

package/src/components/Channel/Channel.tsx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -838,17 +838,13 @@ const ChannelWithContext = <
838838
client.user &&
839839
unreadCount > scrollToFirstUnreadThreshold
840840
) {
841-
try {
842-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
843-
const { user, ...ownReadState } = channel.state.read[client.user.id];
844-
await loadChannelAtFirstUnreadMessage({
845-
channelUnreadState: ownReadState,
846-
setChannelUnreadState,
847-
setTargetedMessage,
848-
});
849-
} catch (error) {
850-
console.warn('Error loading channel at first unread message:', error);
851-
}
841+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
842+
const { user, ...ownReadState } = channel.state.read[client.user.id];
843+
await loadChannelAtFirstUnreadMessage({
844+
channelUnreadState: ownReadState,
845+
setChannelUnreadState,
846+
setTargetedMessage,
847+
});
852848
}
853849

854850
if (unreadCount > 0 && markReadOnMount) {

0 commit comments

Comments
 (0)