File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
projects/stream-chat-angular/src/lib Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -1186,12 +1186,16 @@ export class ChannelService<
1186
1186
private handleNotification ( clientEvent : ClientEvent < T > ) {
1187
1187
switch ( clientEvent . eventType ) {
1188
1188
case 'connection.recovered' : {
1189
- void this . recoverState ( ) . catch ( ( error ) =>
1190
- this . chatClientService . chatClient . logger (
1191
- 'warn' ,
1192
- `Failed to recover state after connection recovery: ${ error } ` ,
1193
- ) ,
1194
- ) ;
1189
+ if ( this . channelManager ) {
1190
+ void this . recoverState ( ) . catch ( ( error ) =>
1191
+ this . chatClientService . chatClient . logger (
1192
+ 'warn' ,
1193
+ `Failed to recover state after connection recovery: ${ error } ` ,
1194
+ ) ,
1195
+ ) ;
1196
+ } else {
1197
+ this . reset ( ) ;
1198
+ }
1195
1199
break ;
1196
1200
}
1197
1201
case 'user.updated' : {
You can’t perform that action at this time.
0 commit comments