File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ export const handleConnection = ({
7878 const newSdk = SendbirdChat . init ( params ) ;
7979 if ( configureSession && typeof configureSession === 'function' ) {
8080 sessionHandler = configureSession ( newSdk ) ;
81+ newSdk . setSessionHandler ( sessionHandler ) ;
8182 }
8283 // to check if code is released version from rollup and *not from storybook*
8384 // see rollup config file
@@ -113,9 +114,6 @@ export const handleConnection = ({
113114 . then ( ( res ) => connectCbSucess ( res ) )
114115 . catch ( ( err ) => connectCbError ( err ) ) ;
115116 } else {
116- if ( sessionHandler ) {
117- newSdk . setSessionHandler ( sessionHandler ) ;
118- }
119117 newSdk . connect ( userId )
120118 . then ( ( res ) => connectCbSucess ( res ) )
121119 . catch ( ( err ) => connectCbError ( err ) ) ;
You can’t perform that action at this time.
0 commit comments