Skip to content

Commit

Permalink
fix: skip updateUserMessageReferences if channel is undefined (#1249)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnautov-anton committed Mar 4, 2024
1 parent 3bf2e00 commit e88b8ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,9 @@ export class StreamChat<StreamChatGenerics extends ExtendableGenerics = DefaultG

for (const channelID in refMap) {
const channel = this.activeChannels[channelID];

if (!channel) continue;

const state = channel.state;

/** update the messages from this user. */
Expand Down

0 comments on commit e88b8ec

Please sign in to comment.