diff --git a/projects/stream-chat-angular/src/lib/channel.service.ts b/projects/stream-chat-angular/src/lib/channel.service.ts index d64d0c0e..bae81c24 100644 --- a/projects/stream-chat-angular/src/lib/channel.service.ts +++ b/projects/stream-chat-angular/src/lib/channel.service.ts @@ -1186,12 +1186,16 @@ export class ChannelService< private handleNotification(clientEvent: ClientEvent) { switch (clientEvent.eventType) { case 'connection.recovered': { - void this.recoverState().catch((error) => - this.chatClientService.chatClient.logger( - 'warn', - `Failed to recover state after connection recovery: ${error}`, - ), - ); + if (this.channelManager) { + void this.recoverState().catch((error) => + this.chatClientService.chatClient.logger( + 'warn', + `Failed to recover state after connection recovery: ${error}`, + ), + ); + } else { + this.reset(); + } break; } case 'user.updated': {