Skip to content

Commit

Permalink
chore: remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic committed Jan 21, 2025
1 parent 453e0e3 commit 7f4a3b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1194,9 +1194,7 @@ export class Channel<StreamChatGenerics extends ExtendableGenerics = DefaultGene
}
}

if (!this.getClient().options.disableCache) {
this.getClient()._addChannelConfig(state.channel);
}
this.getClient()._addChannelConfig(state.channel);

// add any messages to our channel state
const { messageSet } = this._initializeState(state, messageSetToAddToIfDoesNotExist);
Expand Down

0 comments on commit 7f4a3b1

Please # to comment.