File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
package/src/components/Channel Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments